Endpoint endpoint = resolveEndpoint(routeContext);
Producer producer = endpoint.createProducer();
// create error handler we need to use for processing the wire tapped
Processor target = wrapInErrorHandler(routeContext, producer);
// and wrap in UoW, which is needed for error handler as well
target = new UnitOfWorkProcessor(routeContext, target);
WireTapProcessor answer = new WireTapProcessor(endpoint, target, getPattern(), threadPool, shutdownThreadPool);
answer.setCopy(isCopy());
if (newExchangeProcessorRef != null) {
newExchangeProcessor = routeContext.mandatoryLookup(newExchangeProcessorRef, Processor.class);