});
}
private AddonId toAddonId(DependencyNode node)
{
Coordinate coord = node.getDependency().getCoordinate();
DependencyNode forgeApi = DependencyNodeUtil.selectFirst(DependencyNodeUtil.breadthFirstIterator(node),
new Predicate<DependencyNode>()
{
@Override
public boolean accept(DependencyNode node)
{
Coordinate coordinate = node.getDependency().getCoordinate();
return "org.jboss.forge".equals(coordinate.getGroupId())
&& "forge-addon-container-api".equals(coordinate.getArtifactId());
}
});
String apiVersion = null;
if (forgeApi != null)