code: private CmsSitemapInfo getSitemapInfo(String basePath) throws CmsException {
  
          CmsObject cms = getCmsObject();
          CmsResource baseFolder = null;
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(basePath)) {
              baseFolder = cms.readResource(
                  cms.getRequestContext().removeSiteRoot(basePath),
                  CmsResourceFilter.ONLY_VISIBLE_NO_DELETED);
          } else {
              // in case of an empty base path, use base folder of the current site
              basePath = "/";
              baseFolder = cms.readResource("/");
          }
          CmsResource defaultFile = cms.readDefaultFile(baseFolder, CmsResourceFilter.ONLY_VISIBLE_NO_DELETED);
          String title = cms.readPropertyObject(baseFolder, CmsPropertyDefinition.PROPERTY_TITLE, false).getValue();
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(title) && (defaultFile != null)) {
              title = cms.readPropertyObject(defaultFile, CmsPropertyDefinition.PROPERTY_TITLE, false).getValue();
          }
          String description = cms.readPropertyObject(
              baseFolder,
              CmsPropertyDefinition.PROPERTY_DESCRIPTION,
              false).getValue();
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(description) && (defaultFile != null)) {
              description = cms.readPropertyObject(
                  defaultFile,
                  CmsPropertyDefinition.PROPERTY_DESCRIPTION,
                  false).getValue();
          }
          return new CmsSitemapInfo(
              cms.getRequestContext().getCurrentProject().getName(),
              description,
              OpenCms.getLocaleManager().getDefaultLocale(cms, baseFolder).toString(),
              OpenCms.getSiteManager().getCurrentSite(cms).getUrl()
                  + OpenCms.getLinkManager().substituteLinkForUnknownTarget(cms, basePath),
              title);
      }
docs: Returns the sitemap info for the given base path.<p>
  
  @param basePath the base path
  
  @return the sitemap info
  
  @throws CmsException if something goes wrong reading the resources