public Table renderByType() {
		Table table = new Table();
		int i = 1;
		Map<String, Integer> currentRowByType = new HashMap<String, Integer>();
		for (String type : typeToColumn.keySet()) {
			table.addHeader(i++, new TableHeader("    " + StringUtils.capitalize(type)));
		}
		for (ModuleDefinitionResource module : modules) {
			TableRow row = rowForType(module.getType(), table, currentRowByType);
			row.addValue(typeToColumn.get(module.getType()), cellValue(module));
		}
		return table;
	}
Knows how to render a {@link Table} of {@link ModuleDefinitionResource}.

@author Florent Biville
@author Eric Bottard
spring-xd-shell/src/main/java/org/springframework/xd/shell/command/ModuleList.java