public void addTask(final TaskDto task) throws Exception {
// Add email tag
task.addTag("email");
// Add ExchangeID note
final NoteDto exchangeIdNote = new NoteDto();
exchangeIdNote.setTitle(EXCHANGE_ID_NOTE_TITLE);
exchangeIdNote.setBody(task.getExchangeId());
task.addNote(exchangeIdNote);
// Add Original Subject note
final NoteDto originalSubjectNote = new NoteDto();
originalSubjectNote.setTitle(ORIGINAL_SUBJECT_NOTE_TITLE);
originalSubjectNote.setBody(task.getName());
task.addNote(originalSubjectNote);
final String timelineId = createTimeline();
addTask(timelineId, defaultRtmListId, task);
LOG.info("Added RTM task " + task.getName());