SAXParserFactory factory = SAXParserFactory.newInstance();
factory.setNamespaceAware(true);
factory.setValidating(false);
this.reader = factory.newSAXParser().getXMLReader();
this.setEntityResolver(context);
this.setErrorHandler(new DraconianErrorHandler());
this.context = context;
} catch (ParserConfigurationException exception) {
throw new SAXException("Can't create XML reader instance", exception);
}
}