SafeHtmlBuilder safeHtmlBuilder)
{
ImageResource icon = MessageCenterView.getSeverityIcon(message.getSeverity());
AbstractImagePrototype prototype = AbstractImagePrototype.create(icon);
String cssName = (context.getIndex() %2 > 0) ? "message-list-item message-list-item-odd" : "message-list-item";
safeHtmlBuilder.appendHtmlConstant("<table width='100%' cellpadding=4 cellspacing=0><tr valign='middle'>");
safeHtmlBuilder.appendHtmlConstant("<td width=16>");
safeHtmlBuilder.appendHtmlConstant(prototype.getHTML());
safeHtmlBuilder.appendHtmlConstant("</td><td width='100%'>");
String actualMessage = message.getConciseMessage().length()>30 ? message.getConciseMessage().substring(0, 30)+" ..." : message.getConciseMessage();
safeHtmlBuilder.append(TEMPLATE.message(cssName, actualMessage));
safeHtmlBuilder.appendHtmlConstant("</td></tr></table>");