uri = resolveWithCatalogs(OASISCatalogManager.getCatalogManager(bus),
uri, si.getReferencedSchema().getDocumentBaseURI());
if (uri == null) {
uri = si.getReferencedSchema().getDocumentBaseURI();
}
ResourceManagerWSDLLocator rml = new ResourceManagerWSDLLocator(uri, bus);
InputSource src = rml.getBaseInputSource();
if (src.getByteStream() != null || src.getCharacterStream() != null) {
doc = StaxUtils.read(src);
} else { // last resort lets try for the referenced schema itself.
// its not thread safe if we use the same document
doc = StaxUtils.read(