return;
}
// Find winning node.
ArtifactReference winningArtifact = findWinningArtifact( this.foundNodesMap.values() );
DependencyGraphNode winningNode = graph.getNode( winningArtifact );
// Gather up Losing Nodes.
Set losingNodes = new HashSet();
Predicate losersPredicate = NotPredicate.getInstance( new NodeLocationPredicate( winningArtifact ) );
CollectionUtils.select( this.foundNodesMap.values(), losersPredicate, losingNodes );
// Swing losing nodes to winning node.
Iterator it = losingNodes.iterator();
while ( it.hasNext() )
{
NodeLocation losingNodeLoc = (NodeLocation) it.next();
DependencyGraphNode losingNode = graph.getNode( losingNodeLoc.artifact );
DependencyGraphUtils.collapseNodes( graph, losingNode, winningNode );
}
}