code: private void cleanupOldPaths(String oldSitepath, String newSitepath) {
  
          // use a separate list to avoid concurrent changes
          List<CmsClientSitemapEntry> entries = new ArrayList<CmsClientSitemapEntry>(m_entriesById.values());
          for (CmsClientSitemapEntry entry : entries) {
              if (entry.getSitePath().startsWith(oldSitepath)) {
                  String currentPath = entry.getSitePath();
                  String updatedSitePath = CmsStringUtil.joinPaths(
                      newSitepath,
                      currentPath.substring(oldSitepath.length()));
                  entry.updateSitePath(updatedSitePath, this);
              }
          }
      }
docs: Cleans up wrong path references.<p>
  
  @param oldSitepath the old sitepath
  @param newSitepath the new sitepath