table.appendHeading(INFO_TASKINFO_FIELD_TYPE.get());
table.appendHeading(INFO_TASKINFO_FIELD_STATUS.get());
for (String taskId : mapIdToEntry.keySet()) {
TaskEntry entryWrapper = mapIdToEntry.get(taskId);
table.startRow();
table.appendCell(taskId);
table.appendCell(entryWrapper.getType());
table.appendCell(entryWrapper.getState());
}
StringWriter sw = new StringWriter();
TextTablePrinter tablePrinter = new TextTablePrinter(sw);