next = target == nextProcessor ? null : nextProcessor;
target = managed.wrapProcessorInInterceptors(routeContext.getCamelContext(), targetOutputDef, target, next);
}
// then wrap the output with the tracer
TraceInterceptor trace = (TraceInterceptor) getOrCreateTracer().wrapProcessorInInterceptors(routeContext.getCamelContext(), targetOutputDef, target, null);
// trace interceptor need to have a reference to route context so we at runtime can enable/disable tracing on-the-fly
trace.setRouteContext(routeContext);
target = trace;
// sort interceptors according to ordered
Collections.sort(interceptors, new OrderedComparator());
// then reverse list so the first will be wrapped last, as it would then be first being invoked