public void collectStatisticsFrom(Exchange exc) { StatisticCollector sc = getStatisticCollectorByStatusCode(exc.getResponse().getStatusCode()); synchronized (sc) { sc.collectFrom(exc); } }