}
if (consumer.getConfiguration().isUsingExecutorService()) {
// Just use EventExecutorGroup from the Netty Component
EventExecutorGroup applicationExecutor = consumer.getEndpoint().getComponent().getExecutorService();
addToPipeline("handler", channelPipeline, applicationExecutor, new ServerChannelHandler(consumer));
} else {
// still use the worker event loop group here
addToPipeline("handler", channelPipeline, new ServerChannelHandler(consumer));
}
LOG.trace("Created ChannelPipeline: {}", channelPipeline);
}