docs: public void checkRoleForResource(CmsRequestContext context, CmsRole role, CmsResource resource)
      throws CmsRoleViolationException {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              checkRoleForResource(dbc, role, resource);
          } finally {
              dbc.clear();
          }
      }