code: private String getNoEditReason(CmsObject cms, CmsResource containerPage) throws CmsException {
  
          return new CmsResourceUtil(cms, containerPage).getNoEditReason(
              OpenCms.getWorkplaceManager().getWorkplaceLocale(cms));
      }
docs: Returns the no-edit reason for the given resource.<p>
  
  @param cms the current cms object
  @param containerPage the resource
  
  @return the no-edit reason, empty if editing is allowed
  
  @throws CmsException is something goes wrong