Source:
<code>private IgnoredFilesReportModel createIgnoredFilesReport(GraphContext context, WindupJavaConfigurationModel javaCfg, ProjectModel rootProjectModel) { <START> IgnoredFilesReportModel ignoredFilesReportModel = <END> context.getFramed().addVertex(null, IgnoredFilesReportModel.class); ignoredFilesReportModel.setReportPriority(100); ignoredFilesReportModel.setReportName(TITLE); ignoredFilesReportModel.setMainApplicationReport(false); ignoredFilesReportModel.setDisplayInApplicationReportIndex(true); ignoredFilesReportModel.setProjectModel(rootProjectModel); ignoredFilesReportModel.setTemplatePath(TEMPLATE_REPORT); ignoredFilesReportModel.setTemplateType(TemplateType.FREEMARKER); ignoredFilesReportModel.setDisplayInApplicationList(false); GraphService<IgnoredJavaFileModel> ignoredFilesService = new GraphService<IgnoredJavaFileModel>(context, IgnoredJavaFileModel.class); Iterable<IgnoredJavaFileModel> allIgnoredFiles = ignoredFilesService.findAll(); List<IgnoredJavaFileModel> returnIgnoredFiles = new ArrayList<>(); for (IgnoredJavaFileModel file : allIgnoredFiles) { List<String> allProjectPaths = getAllFatherProjectPaths(file.getProjectModel()); if (allProjectPaths.contains(rootProjectModel.getRootFileModel().getFilePath())) { returnIgnoredFiles.add(file); } } for (IgnoredJavaFileModel ignored : returnIgnoredFiles) { ignoredFilesReportModel.addIgnoredFile(ignored); } for (IgnoredFileRegexModel ignoreRegexModel : javaCfg.getIgnoredFileRegexes()) { ignoredFilesReportModel.addFileRegex(ignoreRegexModel); } ReportService reportService = new ReportService(context); reportService.setUniqueFilename(ignoredFilesReportModel, "ignoredfiles_" + rootProjectModel.getName(), "html"); return ignoredFilesReportModel; }</code><technical_language>This a GraphService instead of hitting graph (I a mix of in code, moving GraphService.create for cases now)</technical_language>

Target:
private IgnoredFilesReportModel createIgnoredFilesReport(GraphContext context, WindupJavaConfigurationModel javaCfg, ProjectModel rootProjectModel) { GraphService<IgnoredFilesReportModel> ignoredFilesService= new GraphService<IgnoredFilesReportModel>(context,IgnoredFilesReportModel.class); IgnoredFilesReportModel ignoredFilesReportModel =ignoredFilesService.create(); ignoredFilesReportModel.setReportPriority(100); ignoredFilesReportModel.setReportName(TITLE); ignoredFilesReportModel.setMainApplicationReport(false); ignoredFilesReportModel.setDisplayInApplicationReportIndex(true); ignoredFilesReportModel.setProjectModel(rootProjectModel); ignoredFilesReportModel.setTemplatePath(TEMPLATE_REPORT); ignoredFilesReportModel.setTemplateType(TemplateType.FREEMARKER); ignoredFilesReportModel.setDisplayInApplicationList(false); GraphService<IgnoredJavaFileModel> ignoredFilesModelService = new GraphService<IgnoredJavaFileModel>(context, IgnoredJavaFileModel.class); Iterable<IgnoredJavaFileModel> allIgnoredFiles = ignoredFilesModelService.findAll(); List<IgnoredJavaFileModel> returnIgnoredFiles = new ArrayList<>(); for (IgnoredJavaFileModel file : allIgnoredFiles) { List<String> allProjectPaths = getAllFatherProjectPaths(file.getProjectModel()); if (allProjectPaths.contains(rootProjectModel.getRootFileModel().getFilePath())) { returnIgnoredFiles.add(file); } } for (IgnoredJavaFileModel ignored : returnIgnoredFiles) { ignoredFilesReportModel.addIgnoredFile(ignored); } for (IgnoredFileRegexModel ignoreRegexModel : javaCfg.getIgnoredFileRegexes()) { ignoredFilesReportModel.addFileRegex(ignoreRegexModel); } ReportService reportService = new ReportService(context); reportService.setUniqueFilename(ignoredFilesReportModel, "ignoredfiles_" + rootProjectModel.getName(), "html"); return ignoredFilesReportModel; }