code: @Override
      public CloudTrailEventMetadata getMetadata(int charStart, int charEnd) {
          // Use Jackson getTokenLocation API only return the , (Comma) position, we need to advance to first open curly brace.
          String rawEvent = logFile.substring(charStart, charEnd+1);
          int offset = rawEvent.indexOf("{");
          rawEvent = rawEvent.substring(offset);
          CloudTrailEventMetadata metadata = new LogDeliveryInfo(ctLog, charStart + offset, charEnd, rawEvent);
          return metadata;
      }
docs: Find the raw event in string format from logFileContent based on character start index and end index.