private void createReportIndex(GraphContext context, ProjectModel projectModel)
    {
        ApplicationReportService service = new ApplicationReportService(context);
        ApplicationReportModel applicationReportModel = service.create();
        applicationReportModel.setReportPriority(100);
        applicationReportModel.setDisplayInApplicationReportIndex(true);
        applicationReportModel.setReportName(REPORT_INDEX);
        applicationReportModel.setReportIconClass("glyphicon glyphicon-dashboard");
        applicationReportModel.setMainApplicationReport(true);
        applicationReportModel.setTemplatePath(TEMPLATE);
        applicationReportModel.setTemplateType(TemplateType.FREEMARKER);
        applicationReportModel.setProjectModel(projectModel);
        applicationReportModel.setDescription(
                    "Dashboard report aggregating findings from the analysis.");

        // Set the filename for the report
        ReportService reportService = new ReportService(context);
        reportService.setUniqueFilename(applicationReportModel, "report_index_" + projectModel.getName(), "html");
    }
private void createReportIndex ( GraphContext context , ProjectModel projectModel ) { ApplicationReportService service = new ApplicationReportService ( context ) ; ApplicationReportModel applicationReportModel = service . create ( ) ; applicationReportModel . setReportPriority ( 100 ) ; applicationReportModel . setDisplayInApplicationReportIndex ( true ) ; applicationReportModel . setReportName ( REPORT_INDEX ) ; applicationReportModel . setReportIconClass ( "glyphicon glyphicon-dashboard" ) ; applicationReportModel . setMainApplicationReport ( true ) ; applicationReportModel . setTemplatePath ( TEMPLATE ) ; applicationReportModel . setTemplateType ( TemplateType . FREEMARKER ) ; applicationReportModel . setProjectModel ( projectModel ) ; applicationReportModel . setDescription ( "Dashboard report aggregating findings from the analysis." ) ; ReportService reportService = new ReportService ( context ) ; reportService . setUniqueFilename ( applicationReportModel , "report_index_" + projectModel . getName ( ) , "html" ) ; }
@formatter:on