Updated for latest netty api changes.