replaced ByteBuffer to the adapter class which wraps bytebuffer to adopt it as ChannelBuffer (netty interface)