try {
String xml = camelContextNode.getFacade().dumpRoutesStatsAsXml(managementName);
if (xml != null) {
xml = xml.trim();
if (xml.length() > 0) {
CamelContextStatistics stats = getStatistics(xml);
if (stats != null) {
ArrayList<RouteStatistics> routeStatisticsList = stats.getRouteStatisticsList();
if (routeStatisticsList != null) {
Map<String, IProcessorStatistics> map = new HashMap<String, IProcessorStatistics>();
for (RouteStatistics stat : routeStatisticsList) {
String id = stat.getId();
map.put(id, stat);