@Override
 public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
   // as seen in http://www.jboss.org/netty/community.html#nabble-td2423020
   super.channelOpen(ctx, e);
   if (group != null) {
     group.add(ctx.getChannel());
   }
 }
 public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
   myAllOpenChannels.add(e.getChannel());
   super.channelOpen(ctx, e);
 }
 /**
  * Overriden superclass method. Adds the newly created Channel to the default channel group and
  * calls the super class {@link #channelOpen(ChannelHandlerContext, ChannelStateEvent)} method
  *
  * @see
  *     org.jboss.netty.channel.SimpleChannelUpstreamHandler#channelOpen(org.jboss.netty.channel.ChannelHandlerContext,
  *     org.jboss.netty.channel.ChannelStateEvent)
  */
 public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent event) throws Exception {
   super.channelOpen(ctx, event);
   this.defaultChannelGroup.add(event.getChannel());
 }
 /**
  * Overriden superclass method. Adds the newly created Channel to the default channel group and
  * calls the super class {@link #channelOpen(ChannelHandlerContext, ChannelStateEvent)} method
  *
  * @see
  *     org.jboss.netty.channel.SimpleChannelUpstreamHandler#channelOpen(org.jboss.netty.channel.ChannelHandlerContext,
  *     org.jboss.netty.channel.ChannelStateEvent)
  */
 public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent event) throws Exception {
   super.channelOpen(ctx, event);
 }
 @Override
 public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
   super.channelOpen(ctx, e);
   this.channelHandlerContext = ctx;
   serverHandler = ctx.getPipeline().get(ServerHandler.class);
 }