Ninja fix; oops we shouldn't be using internal Netty classes, resort to another method