docs: private static XPathExpression buildExpression(String xPathExpression, NamespaceContext nsContext)
              throws XPathExpressionException {
          XPath xpath = createXPathFactory().newXPath();
          
          if (nsContext != null) {
              xpath.setNamespaceContext(nsContext);
          }
  
          return xpath.compile(xPathExpression);
      }