move netty common code to netty project