DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
return docBuilderFactory.newDocumentBuilder();
}
private void parseDocument(Document doc) throws Exception {
XPathFactory xPathFactory = XPathFactory.newInstance();
XPath xPath = xPathFactory.newXPath();
// Use a bunch of incremental XPath expressions rather than one big XPath expression,
// so we can provide better log messages.
Node invokerMBeanNode = (Node)xPath.evaluate("//server/mbean[@name = 'jboss.jmx:type=adaptor,name=Invoker']",
doc, XPathConstants.NODE);
if (invokerMBeanNode == null) {