protected static int determineHttpClientCodecInboundState(HttpClientCodec currentCodec) { try { HttpObjectDecoder decoder = (HttpObjectDecoder) httpClientCodecInboundHandlerField.get(currentCodec); return ((Enum) httpObjectDecoderCurrentStateField.get(decoder)).ordinal(); } catch (IllegalAccessException e) { throw new RuntimeException(e); } }