Netty Java code cleanup