code: public String getTextValueForPatternName(final String name) {
          Node n = this.getSingle(name);
          String text = n == null ? null : n.getText();
          return text;
      }
docs: Get the text value of the element found at the given query name. If no element is found, or no text exists,
  return null;