public SourceUnit addSource(SourceUnit source){
  String name=source.getName();
  source.setClassLoader(this.classLoader);
  for (  SourceUnit su : queuedSources) {
    if (name.equals(su.getName()))     return su;
  }
  queuedSources.add(source);
  return source;
}

public SourceUnit addSource ( SourceUnit source ) { String name = source . getName ( ) ; source . setClassLoader ( this . classLoader ) ; for ( SourceUnit su : queuedSources ) { if ( name . equals ( su . getName ( ) ) ) return su ; } queuedSources . add ( source ) ; return source ; }
adds a sourceunit to the unit .
