docs: private static Object getResult(Document document, String node) throws XPathExpressionException {
          // create an XPath object
          XPath xpath = XPathFactory.newInstance().newXPath();
          Object result;
          XPathExpression expr = null;
          expr = xpath.compile(node);
          result = expr.evaluate(document, XPathConstants.NODESET);
          return result;
      }