/wro4j-core/src/main/java/ro/isdc/wro/model/factory/XmlModelFactory.java
schema.newValidator ( ) .validate ( new DOMSource ( document ) ) ;
} } private void validate(final Document document) throws IOException, SAXException { final SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); final Schema schema = factory.newSchema(new StreamSource(getSchemaStream())); <extra_id_0> } private InputStream getSchemaStream() throws IOException { return new AutoCloseInputStream(WroRuntimeException.class.getResourceAsStream(XML_SCHEMA_FILE)); } private void processGroups(final Document document) {