if (strategyRef != null) {
aggregationStrategy = routeContext.lookup(strategyRef, AggregationStrategy.class);
}
if (aggregationStrategy == null) {
// default to use latest aggregation strategy
aggregationStrategy = new UseLatestAggregationStrategy();
}
if (executorServiceRef != null) {
executorService = routeContext.lookup(executorServiceRef, ExecutorService.class);
}
return new MulticastProcessor(list, aggregationStrategy, isParallelProcessing(), executorService, isStreaming());