code: private XpathMessageValidationContext getXPathMessageValidationContext(Element messageElement, XmlMessageValidationContext parentContext) {
          XpathMessageValidationContext context = new XpathMessageValidationContext();
          
          parseXPathValidationElements(messageElement, context);
  
          context.setControlNamespaces(parentContext.getControlNamespaces());
          context.setNamespaces(parentContext.getNamespaces());
          context.setIgnoreExpressions(parentContext.getIgnoreExpressions());
          context.setSchema(parentContext.getSchema());
          context.setSchemaRepository(parentContext.getSchemaRepository());
          context.setSchemaValidation(parentContext.isSchemaValidationEnabled());
          context.setDTDResource(parentContext.getDTDResource());
  
          return context;
      }
docs: Construct the XPath message validation context.
  @param messageElement
  @param parentContext
  @return