for (int j = 0; j < list.size(); j++) {
JavaSource js = (JavaSource) list.get(i);
register(sourcesByName, js);
}
}
return new JavaSourceResolver(){
public JavaSource getJavaSource(JavaQName pQName) {
String key = asKey(pQName);
JavaSource js = (JavaSource) sourcesByName.get(key);
if (js != null) {
return js;