secondLevelRequirementType = requirementsTypes.get(1);
secondLevelRequirementTypeTitle = Inflector.getInstance().of(secondLevelRequirementType)
.inPluralForm().asATitle().toString();
}
for (Release release : allReleases) {
RequirementsOutcomes releaseRequirements = requirementsOutcomes.getReleasedRequirementsFor(release);
Map<String, Object> context = buildContext(testOutcomes, getReportNameProvider());
context.put("report", ReportProperties.forAggregateResultsReport());
context.put("release", release);
context.put("releaseData", getReleaseManager().getJSONReleasesFrom(release));
context.put("releaseRequirementOutcomes", releaseRequirements.getRequirementOutcomes());
context.put("releaseTestOutcomes", testOutcomes.withTag(release.getReleaseTag()));
context.put("requirementType", topLevelRequirementTypeTitle);
if (StringUtils.isNotBlank(secondLevelRequirementTypeTitle)) {
context.put("secondLevelRequirementType", secondLevelRequirementTypeTitle);