{
try
{
String hint = isMaven31() ? "maven31" : isMaven2x() ? "maven2" : "maven3";
DependencyGraphBuilder effectiveGraphBuilder =
(DependencyGraphBuilder) container.lookup( DependencyGraphBuilder.class.getCanonicalName(), hint );
getLogger().debug( "building " + hint + " dependency graph for " + project.getId() + " with "
+ effectiveGraphBuilder.getClass().getSimpleName() );
return effectiveGraphBuilder.buildDependencyGraph( project, filter, reactorProjects );
}
catch ( ComponentLookupException e )
{
throw new DependencyGraphBuilderException( e.getMessage(), e );
}