code: public StreamCutReferenceRecord findStreamCutReferenceForTime(long time) {
          int beforeIndex = getGreatestLowerBound(this, time, StreamCutReferenceRecord::getRecordingTime);
          if (beforeIndex < 0) {
              return null;
          }
  
          return retentionRecords.get(beforeIndex);
      }
docs: Find retention record on or before the given time.
  @param time time
  @return reference record which is greatest lower bound for given time. It returns null if no such record exists in the set.