code: public static Node evaluateAsNode(Node node, String xPathExpression, NamespaceContext nsContext) {
          Node result = (Node) evaluateExpression(node, xPathExpression, nsContext, XPathConstants.NODE);
  
          if (result == null) {
              throw new CitrusRuntimeException("No result for XPath expression: '" + xPathExpression + "'");
          }
  
          return result;
      }
docs: Evaluate XPath expression with result type Node.
  @param node
  @param xPathExpression
  @param nsContext
  @return