protected void checkRedirectToId(int startingRecordId,
                                   int currentRecordId,
                                   int redirectToId) throws RecordAlreadyDeletedException, CorruptedException {
    if (redirectToId == NULL_ID) { //!actual && redirectTo = NULL
      throw new RecordAlreadyDeletedException("Can't access record[" + startingRecordId + "/" + currentRecordId + "]: it was deleted");
    }
    if (!isExistingRecordId(redirectToId)) {
      throw new CorruptedException(
        "record(" + startingRecordId + "/" + currentRecordId + ").redirectToId(=" + redirectToId + ") is not exist: " +
        "allocated ids are in (0, " + nextRecordId() + ")");
    }
  }
protected void checkRedirectToId(int startingRecordId,
                                   int currentRecordId,
                                   int redirectToId)