ExecutionYear year = (ExecutionYear) ExecutionYear.getExecutionInterval(filter.getExecutionInterval());
Set<IEctsConversionTable> tables = new HashSet<IEctsConversionTable>();
for (CompetenceCourse competenceCourse : rootDomainObject.getCompetenceCoursesSet()) {
if ((competenceCourse.getCurricularStage() == CurricularStage.PUBLISHED || competenceCourse.getCurricularStage() == CurricularStage.APPROVED)
&& competenceCourse.hasActiveScopesInExecutionYear(year)) {
EctsCompetenceCourseConversionTable table =
EctsTableIndex.readOrCreateByYear(filter.getExecutionInterval()).getEnrolmentTableBy(competenceCourse);
if (table != null) {
tables.add(table);
} else {
tables.add(new NullEctsConversionTable(competenceCourse));