if (target instanceof CamelContextAware) {
((CamelContextAware) target).setCamelContext(camelContext);
}
// first wrap the output with the managed strategy if any
InterceptStrategy managed = routeContext.getManagedInterceptStrategy();
if (managed != null) {
next = target == nextProcessor ? null : nextProcessor;
target = managed.wrapProcessorInInterceptors(routeContext.getCamelContext(), outputDefinition, target, next);
}
// then wrap the output with the tracer
// the tracer should have the fine grained definition so if a child is set then use it, if not then its the original output used
ProcessorDefinition<?> traceDef = childDefinition != null ? childDefinition : outputDefinition;