}
}
public static ResourceResolver getResourceResolver(String uri, String baseURI) throws XMLSecurityException {
for (int i = 0; i < resourceResolvers.size(); i++) {
ResourceResolverLookup resourceResolver = resourceResolvers.get(i);
ResourceResolverLookup rr = resourceResolver.canResolve(uri, baseURI);
if (rr != null) {
return rr.newInstance(uri, baseURI);
}
}
throw new XMLSecurityException("utils.resolver.noClass", uri, baseURI);
}