}
public void finishNode( DependencyGraphNode node )
{
super.finishNode( node );
DependencyGraphNode pathNode = (DependencyGraphNode) nodePath.pop();
if ( !node.equals( pathNode ) )
{
String pathNodeKey = ArtifactReference.toKey( pathNode.getArtifact() );
String finishNodeKey = ArtifactReference.toKey( node.getArtifact() );
throw new IllegalStateException( "Encountered bad visitor state. Expected finish on node " + pathNodeKey
+ ", but instead got notified of node " + finishNodeKey );
}
}