ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("decoder", new HttpRequestDecoder());
pipeline.addLast("aggregator", new HttpChunkAggregator(1048576));
pipeline.addLast("encoder", new HttpResponseEncoder());
pipeline.addLast("gzip", new HttpContentCompressor(6));
pipeline.addLast("chunkedWriter", new ChunkedWriteHandler());
if (routerHandler == null) {
logger.info("Building routerHandler for pipeline");
LinkedHashMap<String, ChannelHandler> routes = new LinkedHashMap<String, ChannelHandler>();
routes.put("startsWith:/mainMenu.json", new MainMenuChannelHandler());