protected void checkRecordIdExists(int recordId) throws IllegalArgumentException {
    if (!isExistingRecordId(recordId)) {
      throw new IllegalArgumentException("recordId(" + recordId + ") is not valid: allocated ids are in (0, " + nextRecordId() + ")");
    }
  }
protected void checkRecordIdExists(int recordId)