docs: public void checkRole(CmsDbContext dbc, CmsRole role) throws CmsRoleViolationException {
  
          if (!hasRole(dbc, dbc.currentUser(), role)) {
              if (role.getOuFqn() != null) {
                  throw role.createRoleViolationExceptionForOrgUnit(dbc.getRequestContext(), role.getOuFqn());
              } else {
                  throw role.createRoleViolationException(dbc.getRequestContext());
              }
          }
      }