final InputSource inputSource = new InputSource(reader);
final XmlSAXHandler handler =
new XmlSAXHandler(documentName, new EntityResolver(configuration), ErrorHandler.INSTANCE);
saxParser.setProperty(
"http://xml.org/sax/properties/lexical-handler", handler);
saxParser.setProperty(
"http://xml.org/sax/properties/declaration-handler", handler);