/wro4j-core/src/main/java/ro/isdc/wro/model/factory/XmlModelFactory.java
final Schema schema = factory.newSchema( new StreamSource( getSchemaStream( ) ) ) ;final Document document = factory.newDocumentBuilder( ).parse( new AutoCloseInputStream( getModelResourceAsStream( ) ) ) ;
final Document document = factory.newDocumentBuilder ( ) .parse ( new AutoCloseInputStream ( getModelResourceAsStream ( ) ) ) ;
} } private Document createDocument() { try { final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(true); <extra_id_0> document.getDocumentElement().normalize(); if (isValidateXml()) { validate(document); } return document; } catch (final Exception e) {