docs: private String getLockInfo(CmsResource resource) throws CmsException {
  
          CmsObject cms = getCmsObject();
          CmsResourceUtil resourceUtil = new CmsResourceUtil(cms, resource);
          CmsLock lock = resourceUtil.getLock();
          String lockInfo = null;
          if (!lock.isLockableBy(cms.getRequestContext().getCurrentUser())) {
              if (lock.getType() == CmsLockType.PUBLISH) {
                  lockInfo = Messages.get().getBundle(OpenCms.getWorkplaceManager().getWorkplaceLocale(cms)).key(
                      Messages.GUI_LOCKED_FOR_PUBLISH_0);
              } else {
                  CmsUser lockOwner = cms.readUser(lock.getUserId());
                  lockInfo = Messages.get().getBundle(OpenCms.getWorkplaceManager().getWorkplaceLocale(cms)).key(
                      Messages.GUI_LOCKED_BY_1,
                      lockOwner.getFullName());
              }
          }
          return lockInfo;
      }