public static String createReport(BrowsableNode browsableNode, String requirePath, boolean showAllDependencies) throws ModelOperationException {
try {
fixIncompleteAliases(browsableNode);
SourceModule sourceModule = (SourceModule)browsableNode.getLinkedAsset(requirePath);
List<LinkedAsset> linkedAssets = new ArrayList<>();
linkedAssets.add(sourceModule);
return "Source module '" + sourceModule.getPrimaryRequirePath() + "' dependencies found:\n" +
new DependencyGraphReportBuilder(linkedAssets, DependencyInfoFactory.buildReverseDependencyMap(browsableNode, sourceModule), showAllDependencies).createReport();
}
catch(RequirePathException e) {
return e.getMessage();
}