String (String message, String firstDescription, TextElementType firstType, String secondDescription, TextElementType secondType) { StringBuilder result = new StringBuilder(); result.append("<html>").append(message); result.append("<table><tr><td>").append(firstDescription).append("</td><td>"); renderText(result, firstType, "{0}"); result.append("</td></tr><tr><td>").append(secondDescription).append("</td><td>"); renderText(result, secondType, "{1}"); result.append("</td></tr></table></html>"); return result.toString(); }