netty in action, chapter 4.