protected void printEntityRef(Writer out, EntityRef entity)
    throws IOException {
    out.write("&");
    out.write(entity.getName());
    out.write(";");
  }
protected void printEntityRef(Writer out, EntityRef entity)