code: private void resetStatesAfterDecode(final ChannelHandlerContext ctx) {
          if (traceEnabled) {
              LOGGER.trace("{}Finished decoding of {}", logIdent(ctx, endpoint), currentRequest);
          }
          currentRequest = null;
          currentDecodingState = DecodingState.INITIAL;
      }
docs: Helper method which performs the final tasks in the decoding process.
  
  @param ctx the channel handler context for logging purposes.