code: protected void addDetailLinks(CmsResource containerPage, Locale locale) throws CmsException {
  
          List<I_CmsResourceType> types = getDetailTypesForPage(containerPage);
          for (I_CmsResourceType type : types) {
              List<CmsResource> resourcesForType = getDetailResources(type);
              for (CmsResource detailRes : resourcesForType) {
                  if (!isValidDetailPageCombination(containerPage, locale, detailRes)) {
                      continue;
                  }
                  List<CmsProperty> detailProps = m_guestCms.readPropertyObjects(detailRes, true);
                  String detailLink = getDetailLink(containerPage, detailRes, locale);
                  detailLink = CmsFileUtil.removeTrailingSeparator(detailLink);
                  CmsXmlSitemapUrlBean detailUrlBean = new CmsXmlSitemapUrlBean(
                      replaceServerUri(detailLink),
                      detailRes.getDateLastModified(),
                      getChangeFrequency(detailProps),
                      getPriority(detailProps));
                  detailUrlBean.setOriginalResource(detailRes);
                  detailUrlBean.setDetailPageResource(containerPage);
                  addResult(detailUrlBean, 2);
              }
          }
      }
docs: Adds the detail page links for a given page to the results.<p>
  
  @param containerPage the container page resource
  @param locale the locale of the container page
  
  @throws CmsException if something goes wrong