Updated for latest netty4 api changes.