private int store(int offset, int value, boolean toDisk) throws IOException {
    assert offset + 4 < MAX_DATA_SEGMENT_LENGTH;

    if (toDisk) {
      if (myFirstPageStart == -1 || myCollisionResolutionStorage.getInt(offset) != value) {
        myCollisionResolutionStorage.putInt(offset, value);
      }
    }
    else {
      value = myCollisionResolutionStorage.getInt(offset);
    }
    return value;
  }
private int store(int offset, int value, boolean toDisk)