protected String htmlPreamble(Event event) { StringBuilder buf = new StringBuilder(); buf.append("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n"); buf.append(" \"http://www.w3.org/TR/html4/loose.dtd\">\n"); buf.append("<html>"); buf.append(" <head><title>"); buf.append(getSubject(event)); buf.append("</title></head>"); buf.append(" <body>"); return buf.toString(); }