docs: private String escapeXmlValue(String value, boolean isAttrValue) {
          if (value == null)
              throw new IllegalArgumentException();
          return StringGroovyMethods.collectReplacements(value, new ReplacingClosure(isAttrValue, useDoubleQuotes));
      }