Protocol builder for netty using scala