return DependencyGraphKeys.toKey( ((DependencyGraphNode) input).getArtifact() );
}
if ( input instanceof DependencyGraphEdge )
{
DependencyGraphEdge edge = (DependencyGraphEdge) input;
// Potentially Confusing, but this is called "To"KeyTransformer after all.
return DependencyGraphKeys.toKey( edge.getNodeTo() );
}
if ( input instanceof ArtifactReference )
{
return DependencyGraphKeys.toKey( ((ArtifactReference) input) );