onPrepare = CamelContextHelper.mandatoryLookup(routeContext.getCamelContext(), onPrepareRef, Processor.class);
}
Expression exp = getExpression().createExpression(routeContext);
Splitter answer = new Splitter(routeContext.getCamelContext(), exp, childProcessor, aggregationStrategy,
isParallelProcessing(), executorService, isStreaming(), isStopOnException(),
timeout, onPrepare, isShareUnitOfWork());
if (isShareUnitOfWork()) {
// wrap answer in a sub unit of work, since we share the unit of work
return new SubUnitOfWorkProcessor(answer);