code: protected void xmlEncode(
              final String in,
              final StringBuilder builder)
      {
          if (!CDATA_NOTNEEDED.matcher(in).matches())
              builder.append("<![CDATA[").append(in).append("]]>");
          else
              builder.append(in);
      }
docs: <p>
  xmlEncode.
  </p>
  
  @param in a {@link java.lang.String} object.
  @param builder a {@link java.lang.StringBuilder} object.