/**
  * Notify that decoding is finished. This needs to be called by the child handlers in order to
  * signal that operations are done.
  */
 protected void finishedDecoding() {
   this.currentDecodingState = DecodingState.FINISHED;
   if (isTransient) {
     endpoint.disconnect();
   }
 }