code: public StitchEvent<T> nextEvent() throws IOException {
      final Event nextEvent = eventStream.nextEvent();
      if (nextEvent == null) {
        return null;
      }
  
      return StitchEvent.fromEvent(nextEvent, this.decoder);
    }
docs: Fetch the next event from a given stream
  @return the next event
  @throws IOException any io exception that could occur