pipeline.addLast("executor", new ExecutionHandler(executor));
pipeline.addLast("logging", new LoggingHandler(logger));
// a node resolver must be added before the mesage codec
pipeline.addLast("messageCodec", new MessageCodec());
pipeline.addLast("nodeResolver", nodeResolver);
pipeline.addLast("common", new SimpleChannelUpstreamHandler() {
@Override
public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
if (channelGroup != null)
channelGroup.add(e.getChannel());