if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("looking up schema for " + conf.getNamespaceURI());
}
XSDSchemaLocator locator = conf.getSchemaLocator();
if (locator == null) {
LOGGER.fine("No schema locator for " + conf.getNamespaceURI());
continue;
}
String namespaceURI = conf.getNamespaceURI();
String schemaLocation = null;
try {
URL location = new URL(conf.getSchemaFileURL());
schemaLocation = location.toExternalForm();
} catch (MalformedURLException e) {
throw new RuntimeException(e);
}
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("schema location: " + schemaLocation);
}
XSDSchema schema = locator.locateSchema(null, namespaceURI, schemaLocation, null);
if (schema != null) {
resolvedSchemas.add(schema);
}
}