private void recursivelyProcessComponent(ComputationContext context, int componentRef) { BatchReportReader reportReader = context.getReportReader(); BatchReport.Component component = reportReader.readComponent(componentRef); List<BatchReport.Issue> issues = reportReader.readComponentIssues(componentRef); issueComputation.processComponentIssues(context, issues, component.getUuid(), componentRef); for (Integer childRef : component.getChildRefList()) { recursivelyProcessComponent(context, childRef); } }
@Override public BatchReport.Component readComponent(int componentRef) { return delegate.readComponent(componentRef); }