code: @Nullable
      public static NodeList findNodes(@NotNull final Node rootNode, @NotNull final XPath xPath,
              @NotNull final String expression) {
          Contract.requireArgNotNull("doc", rootNode);
          Contract.requireArgNotNull("xPath", xPath);
          Contract.requireArgNotNull("expression", expression);
          try {
              return (NodeList) xPath.compile(expression).evaluate(rootNode, XPathConstants.NODESET);
          } catch (final XPathExpressionException ex) {
              throw new RuntimeException("Failed to read node: " + expression, ex);
          }
      }
docs: Returns a list of nodes from a given document using xpath.
  
  @param rootNode
  Node to search.
  @param xPath
  XPath to use.
  @param expression
  XPath expression.
  
  @return Nodes or <code>null</code> if no match was found.