throw new ServiceRuntimeException(e);
}
DOMImplementation impl = registry.getDOMImplementation("XML 3.0");
DOMImplementationLS ls = (DOMImplementationLS)impl.getFeature("LS", "3.0");
LSParser parser = ls.createLSParser(DOMImplementationLS.MODE_SYNCHRONOUS, SCHEMA_NS);
LSInput input = ls.createLSInput();
input.setCharacterStream(new StringReader(schema));
Document document = parser.parse(input);
XSDefinition definition = factory.createXSDefinition();
definition.setUnresolved(true);
definition.setDocument(document);
definition.setNamespace(ns);