code: public List<StreamCutReferenceRecord> retentionRecordsBefore(StreamCutReferenceRecord record) {
          Preconditions.checkNotNull(record);
          int beforeIndex = getGreatestLowerBound(this, record.getRecordingTime(), StreamCutReferenceRecord::getRecordingTime);
          
          return retentionRecords.subList(0, beforeIndex + 1);
      }
docs: Get a list of all retention reference stream cut records on or before (inclusive) the given record.
  @param record reference record
  @return list of reference records before given reference record.