code: protected void addResult(CmsXmlSitemapUrlBean result, int resultPriority) {
  
          String url = CmsFileUtil.removeTrailingSeparator(result.getUrl());
          boolean writeEntry = true;
          if (m_resultMap.containsKey(url)) {
              LOG.warn("Encountered duplicate URL with while generating sitemap: " + result.getUrl());
              ResultEntry entry = m_resultMap.get(url);
              writeEntry = entry.getPriority() <= resultPriority;
          }
          if (writeEntry) {
              m_resultMap.put(url, new ResultEntry(result, resultPriority));
          }
      }
docs: Adds an URL bean to the internal map of results, but only if there is no existing entry with higher internal priority
  than the priority given as an argument.<p>
  
  @param result the result URL bean to add
  
  @param resultPriority the internal priority to use for updating the map of results