public static String printEvent(EventBean theEvent){
  StringWriter writer=new StringWriter();
  PrintWriter buf=new PrintWriter(writer);
  printEvent(buf,theEvent);
  return writer.toString();
}

public static String printEvent ( EventBean theEvent ) { StringWriter writer = new StringWriter ( ) ; PrintWriter buf = new PrintWriter ( writer ) ; printEvent ( buf , theEvent ) ; return writer . toString ( ) ; }
format the event and return a string representation .
