Iterator it = process.getImports().iterator();
while ( it.hasNext() )
{
Import imp = (Import) it.next();
// The null and "" problem ...
String ns = imp.getNamespace();
if (ns == null) {
ns = javax.xml.XMLConstants.DEFAULT_NS_PREFIX;
}
if (ns.equals(qname.getNamespaceURI()) == false ||
imp.getLocation() == null ) {
continue;
}
ImportResolver[] resolvers = ImportResolverRegistry.INSTANCE.getResolvers(imp.getImportType());
for (int i = 0; i < resolvers.length; i++)
{
result = resolvers[i].resolve(imp, qname, proxyURI.getID(), proxyURI.getTypeName());
if (result != null) {
return result;