code: public Map<CmsUUID, CmsClientSitemapEntry> getEntriesById(Collection<CmsUUID> ids) {
  
          // TODO: use some map of id -> entry instead
          List<CmsClientSitemapEntry> entriesToProcess = new ArrayList<CmsClientSitemapEntry>();
          Map<CmsUUID, CmsClientSitemapEntry> result = new HashMap<CmsUUID, CmsClientSitemapEntry>();
  
          entriesToProcess.add(m_data.getRoot());
          while (!entriesToProcess.isEmpty()) {
              CmsClientSitemapEntry entry = entriesToProcess.remove(entriesToProcess.size() - 1);
              if (ids.contains(entry.getId())) {
                  result.put(entry.getId(), entry);
                  if (result.size() == ids.size()) {
                      return result;
                  }
              }
              entriesToProcess.addAll(entry.getSubEntries());
          }
          return result;
      }
docs: Returns all entries with an id from a given list.<p>
  
  @param ids a list of sitemap entry ids
  
  @return all entries whose id is contained in the id list