Source src = new DOMSource(document);
src.setSystemId(is.getSystemId());
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
final LSResourceResolver oldResolver = factory.getResourceResolver();
LSResourceResolver resolver = new LSResourceResolver() {
public LSInput resolveResource(String type, String nsURI,
String publicId, String systemId, String baseURI) {
if (LOG.isLoggable(Level.FINE)) {
LOG.fine("resolving resource type: " + type + "\n"