Porting Netty4 examples to Scala