/** * <p>Reads an XML document from an {@link URL} * and uses it to configure this {@link FactoryConfiguration}.</p> * * @param url the URL to read from */ protected void readImpl(URL url) throws IOException { Digester digester = new Digester(); digester.setNamespaceAware(true); digester.setXIncludeAware(true); digester.setValidating(false); digester.setUseContextClassLoader(true); digester.push(this); digester.addRuleSet(getRuleSet()); try { digester.parse(url); } catch (SAXException saxe) { throw new RuntimeException("There was an error while parsing the InputStream", saxe); } }