Netty API change, don't use depreciated method