}
private StringBuilder buildTreeString( DependencyNode node )
{
List<String> loc = new ArrayList<String>();
DependencyNode currentNode = node;
while ( currentNode != null )
{
StringBuilder line = new StringBuilder( getFullArtifactName( currentNode, false ) );
if ( currentNode.getPremanagedVersion() != null )
{
line.append( " (managed) <-- " );
line.append( getFullArtifactName( currentNode, true ) );
}
loc.add( line.toString() );
currentNode = currentNode.getParent();
}
Collections.reverse( loc );
StringBuilder builder = new StringBuilder();
for ( int i = 0; i < loc.size(); i++ )
{