Implementing register with response for netty server.