Collection resolvedRevs = new HashSet(); for (Iterator iter = resolved.iterator(); iter.hasNext();) { IvyNode node = (IvyNode)iter.next(); resolvedRevs.add(node.getId()); resolvedRevs.add(node.getResolvedId()); } _selectedRevs.put(moduleIdConf, resolvedRevs);
    public void setResolvedNodes(ModuleId moduleId, String rootModuleConf, Collection resolved) {        ModuleIdConf moduleIdConf = new ModuleIdConf(moduleId, rootModuleConf);        _selectedDeps.put(moduleIdConf, new HashSet(resolved));        Collection resolvedRevs = new HashSet();        for (Iterator iter = resolved.iterator(); iter.hasNext();) {            IvyNode node = (IvyNode)iter.next();            resolvedRevs.add(node.getId());            resolvedRevs.add(node.getResolvedId());        }        _selectedRevs.put(moduleIdConf, resolvedRevs);    }