public boolean decRefCount(int record) throws IOException {
    markDirty();

    int offset = getOffset(record, REF_COUNT_OFFSET);
    int count = myStorage.getInt(offset);
    assert count > 0;
    count--;
    myStorage.putInt(offset, count);
    return count == 0;
  }
public boolean decRefCount(int record)