code: public boolean hasNextEvent() throws IOException {
          /* In Fasterxml parser, hasNextEvent will consume next token. So do not call it multiple times. */
          JsonToken nextToken = jsonParser.nextToken();
          return nextToken == JsonToken.START_OBJECT || nextToken == JsonToken.START_ARRAY;
      }
docs: Indicates whether the CloudTrail log has more events to read.
  
  @return <code>true</code> if the log contains more events; <code>false</code> otherwise.
  @throws IOException if the log could not be opened or accessed.