public static String outputString(EntityRef entity) {
    StringWriter out = new StringWriter();
    try {
      printEntityRef(out, entity);
    }
    catch (IOException ignored) {
    }
    return out.toString();
  }
public static String outputString(EntityRef entity)