Splitter answer = new Splitter(routeContext.getCamelContext(), exp, childProcessor, aggregationStrategy,
isParallelProcessing(), threadPool, shutdownThreadPool, 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);
}
return answer;
}