private void checkRecordIdIsValid(final int recordId) throws IndexOutOfBoundsException {
    if (!isValidFileId(recordId)) {
      final int recordsAllocatedSoFar = allocatedRecordsCount.get();
      throw new IndexOutOfBoundsException(
        "recordId(=" + recordId + ") is outside of allocated IDs range (0, " + recordsAllocatedSoFar + "]");
    }
  }
private void checkRecordIdIsValid(final int recordId)