public boolean isDeleted(int id) throws IOException {
    //TODO RC: why first condition is not enough? How could recordId be in freeRecords, if it doesn't have FREE_RECORD flag on it?
    final int flags = connection.getRecords().getFlags(id);
    return hasDeletedFlag(flags) || newFreeRecords.contains(id);
  }
public boolean isDeleted(int id)