for (Iterator iterator = sel.iterator(); iterator.hasNext();) { IvyNode n = (IvyNode)iterator.next(); if (n.getRealNode().equals(this)) {   iter.remove();
if (sel != null) { for (Iterator iterator = sel.iterator(); iterator.hasNext();) { IvyNode n = (IvyNode)iterator.next(); if (n.getRealNode().equals(this)) {   iter.remove(); }
    private void cleanEvicted() {        // check if it was evicted by a node that we are now the real node for        for (Iterator iter = _evicted.keySet().iterator(); iter.hasNext();) {            String rootModuleConf = (String)iter.next();            EvictionData ed = (EvictionData)_evicted.get(rootModuleConf);            Collection sel = ed.getSelected();            for (Iterator iterator = sel.iterator(); iterator.hasNext();) {                IvyNode n = (IvyNode)iterator.next();                if (n.getRealNode().equals(this)) {                    // yes, we are the real node for a selected one !                    // we are no more evicted in this conf !                    iter.remove();                                    }            }        }    }