while( it.hasNext() ) {
Schema s = (Schema) it.next();
String ns = s.getTargetNamespace().toString();
String prefixLookup = prefixCache != null ? (String) prefixCache.get(ns) : null;
if (prefix1 == null || prefixLookup == null || prefix1.equals(prefixLookup)) {
Group ct = lookUpGroup(localName, s, new TreeSet());
if (ct != null) {
return ct;
}
}
}
}
}
if (groups != null) {
it = groups.iterator();
while( it.hasNext() ) {
Object o = it.next();
if (o instanceof GroupHandler) {
GroupHandler sst = (GroupHandler) o;
if (localName.equalsIgnoreCase(sst.getName())) {
return (Group) sst.compress(this);
}
} else {
Group sst = (Group) o;
if (localName.equalsIgnoreCase(sst.getName())) {
return sst;
}
}
}
}