docs: public void checkPermissions(
          CmsRequestContext context,
          CmsResource resource,
          CmsPermissionSet requiredPermissions,
          boolean checkLock,
          CmsResourceFilter filter)
      throws CmsException, CmsSecurityException {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              // check the access permissions
              checkPermissions(dbc, resource, requiredPermissions, checkLock, filter);
          } finally {
              dbc.clear();
          }
      }