public String outputString(EntityRef entity) {
    StringWriter out = new StringWriter();
    try {
      output(entity, out);  // output() flushes
    }
    catch (IOException e) {
    }
    return out.toString();
  }
public String outputString(EntityRef entity)