docs: public void checkRoleForResource(CmsDbContext dbc, CmsRole role, CmsResource resource)
      throws CmsRoleViolationException {
  
          if (!hasRoleForResource(dbc, dbc.currentUser(), role, resource)) {
              throw role.createRoleViolationExceptionForResource(dbc.getRequestContext(), resource);
          }
      }