docs: public I_CmsPermissionHandler.CmsPermissionCheckResult hasPermissions(
          CmsRequestContext context,
          CmsResource resource,
          CmsPermissionSet requiredPermissions,
          boolean checkLock,
          CmsResourceFilter filter)
      throws CmsException {
  
          I_CmsPermissionHandler.CmsPermissionCheckResult result = null;
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              result = hasPermissions(dbc, resource, requiredPermissions, checkLock, filter);
          } finally {
              dbc.clear();
          }
          return result;
      }