protected Processor createCompositeProcessor(RouteContext routeContext, List<Processor> list) {
if (aggregationStrategy == null && strategyRef != null) {
aggregationStrategy = routeContext.lookup(strategyRef, AggregationStrategy.class);
}
if (aggregationStrategy == null) {
aggregationStrategy = new UseLatestAggregationStrategy();
}
if (threadPoolRef != null) {
threadPoolExecutor = routeContext.lookup(threadPoolRef, ThreadPoolExecutor.class);
}
return new MulticastProcessor(list, aggregationStrategy, isParallelProcessing(), threadPoolExecutor);