/** * Build an XMLReader to be used for the source. This will * create a new instance of DocumentReader with an * EntityResolver instance if available. * * @return XMLReader reading the XML data from the source * JDOM document with an optional EntityResolver */ private XMLReader buildDocumentReader() { DocumentReader reader = new DocumentReader(); if (resolver != null) reader.setEntityResolver(resolver); return reader; }