code: protected CmsBrokenLinkBean createSitemapBrokenLinkBean(CmsResource resource) throws CmsException {
  
          CmsObject cms = getCmsObject();
          CmsProperty titleProp = cms.readPropertyObject(resource, CmsPropertyDefinition.PROPERTY_TITLE, true);
          String typeName = OpenCms.getResourceManager().getResourceType(resource).getTypeName();
          String defaultTitle = "";
          String title = titleProp.getValue(defaultTitle);
          String path = cms.getSitePath(resource);
          String subtitle = path;
  
          CmsBrokenLinkBean result = new CmsBrokenLinkBean(resource.getStructureId(), title, subtitle, typeName);
  
          return result;
      }
docs: Creates a "broken link" bean based on a resource.<p>
  
  @param resource the resource
  
  @return the "broken link" bean with the data from the resource
  
  @throws CmsException if something goes wrong