docs: public CmsLock getLock(CmsRequestContext context, CmsResource resource) throws CmsException {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          CmsLock result = null;
          try {
              result = m_driverManager.getLock(dbc, resource);
          } catch (Exception e) {
              dbc.report(null, Messages.get().container(Messages.ERR_GET_LOCK_1, context.getSitePath(resource)), e);
          } finally {
              dbc.clear();
          }
          return result;
      }