{
public static void main(String[] args) {
// This has to be done before log4j gets a chance to capture the previous
// System.out for the CONSOLE appender. It will get switched to the real
// console when that service starts up.
PrintStream ps = new TextAreaPrintStream();
System.setOut(ps);
try {
Main.main(args);
}
catch (Exception ex) {