code: public static String fromNamedReference(CharSequence s) {
          if (s == null) {
              return null;
          }
          final Integer code = SPECIALS.get(s.toString());
          if (code != null) {
              return "&#" + code + ";";
          }
          return null;
      }
docs: Converts a named XML entity into its HTML encoded Unicode code point.
  
  @param s the named entity (note, this should not include the leading
  '&amp;' or trailing ';'
  @return the HTML encoded Unicode code point representation of the named
  entity