out.println(String.format(headerFormat, CONTEXT_COLUMN_LABEL, ROUTE_COLUMN_LABEL, STATUS_COLUMN_LABEL));
out.println(String.format(headerFormat, "-------", "-----", "------"));
for (Route route : routes) {
String contextId = route.getRouteContext().getCamelContext().getName();
String routeId = route.getId();
ServiceStatus status = route.getRouteContext().getCamelContext().getRouteStatus(routeId);
out.println(String.format(rowFormat, contextId, routeId, status));
}
}
return null;