ResolutionNode node = (ResolutionNode) i.next();
if ( node != root )
{
Artifact artifact = node.getArtifact();
artifact.setDependencyTrail( node.getDependencyTrail() );
<BUG>set.add( artifact );
}</BUG>
}
ArtifactResolutionResult result = new ArtifactResolutionResult();
<BUG>result.setArtifacts( set );
</BUG>
return result;

ResolutionNode node = (ResolutionNode) i.next();
if ( node != root )
{
Artifact artifact = node.getArtifact();
artifact.setDependencyTrail( node.getDependencyTrail() );
set.add( node );
}
}
ArtifactResolutionResult result = new ArtifactResolutionResult();
result.setArtifactResolutionNodes( set );
return result;
