// only needed to register on the first output as all rotues will pass through this one
ProcessorDefinition out = routeContext.getRoute().getOutputs().get(0);
// add an intercept strategy that counts when the route sends to any of its outputs
out.addInterceptStrategy(new InterceptStrategy() {
public Processor wrapProcessorInInterceptors(ProcessorDefinition processorDefinition, Processor target, Processor nextTarget) throws Exception {
if (registeredRoutes.containsKey(endpoint)) {
// do not double wrap
return target;
}