code: protected void verifyCrudMode(final int crudMode, final int expectedMode, final String dictId) {
          if (crudMode != expectedMode) {
              throwValidationError(messages -> {
                  messages.addErrorsCrudInvalidMode(GLOBAL, String.valueOf(expectedMode), String.valueOf(crudMode));
              }, () -> asListHtml(dictId));
          }
      }
docs: ============