code: public static Object evaluateExpression(Node node, String xPathExpression, NamespaceContext nsContext, QName returnType) {
          try {
              return buildExpression(xPathExpression, nsContext).evaluate(node, returnType);
          } catch (XPathExpressionException e) {
              throw new CitrusRuntimeException("Can not evaluate xpath expression '" + xPathExpression + "'", e);
          }
      }
docs: Evaluates the expression.
  
  @param node the node.
  @param xPathExpression the expression.
  @param nsContext the context.
  @param returnType
  @return the result.