gridLayout.setSpacing(true);
addComponent(gridLayout);
InputStream contentStream = taskService.getAttachmentContent(attachment.getId());
// TODO: Error handling
JSONObject emailJson = new JSONObject(new JSONTokener(new InputStreamReader(contentStream)));
String html = emailJson.getString(Constants.EMAIL_HTML_CONTENT);
String subject = emailJson.getString(Constants.EMAIL_SUBJECT);
String recipients = emailJson.getString(Constants.EMAIL_RECIPIENT);
String sentDate = emailJson.getString(Constants.EMAIL_SENT_DATE);