this.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
this.setFeature("http://apache.org/xml/features/nonvalidating/load-dtd-grammar", false);
this.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
this.setEntityResolver(new EntityResolver() {
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
throw new RuntimeDiscoveryException("External entity found in input data" );
}
});
}
catch (SAXNotRecognizedException e)
{