Port to netty 4