code: private void parseXPathValidationElements(Element messageElement, XpathMessageValidationContext context) {
          //check for validate elements, these elements can either have script, xpath or namespace validation information
          //for now we only handle xpath validation
          Map<String, Object> validateXpathExpressions = new HashMap<>();
  
          List<?> validateElements = DomUtils.getChildElementsByTagName(messageElement, "validate");
          if (validateElements.size() > 0) {
              for (Iterator<?> iter = validateElements.iterator(); iter.hasNext();) {
                  Element validateElement = (Element) iter.next();
                  extractXPathValidateExpressions(validateElement, validateXpathExpressions);
              }
  
              context.setXpathExpressions(validateXpathExpressions);
          }
      }
docs: Parses validation elements and adds information to the message validation context.
  
  @param messageElement the message DOM element.
  @param context the message validation context.