code: public static CmsListInfoBean getPageInfoWithLock(CmsObject cms, CmsResource resource)
      throws CmsLoaderException, CmsException {
  
          CmsListInfoBean result = getPageInfo(cms, resource);
          addLockInfo(cms, resource, result);
          return result;
      }
docs: Returns a bean to display the {@link org.opencms.gwt.client.ui.CmsListItemWidget} including the lock state.<p>
  
  @param cms the CMS context
  @param resource the resource to get the page info for
  
  @return a bean to display the {@link org.opencms.gwt.client.ui.CmsListItemWidget}.<p>
  
  @throws CmsLoaderException if the resource type could not be found
  @throws CmsException if something else goes wrong