// parse
Document document = null;
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
DocumentBuilder parser = factory.newDocumentBuilder();
document = parser.parse(is);
} catch (ParserConfigurationException ex) {
throw new ConfigurationException(new Message("PARSER_CONFIGURATION_ERROR_EXC", LOG), ex);
} catch (SAXException ex) {
throw new ConfigurationException(new Message("PARSE_ERROR_EXC", LOG), ex);