@Override
  public int allocateRecord() {
    final int recordId = allocatedRecordsCount.incrementAndGet();
    if (recordId > maxRecords) {
      throw new IndexOutOfBoundsException("maxRecords(=" + maxRecords + ") limit exceeded");
    }
    markDirty();
    return recordId;
  }
@Override
  public int allocateRecord()