createOtherExecutionYears(executionYear, executionPeriod1, executionPeriod2, 1, "2005/2006"); createOtherExecutionYears(executionYear, executionPeriod1, executionPeriod2, 2, "2004/2005"); createOtherExecutionYears(executionYear, executionPeriod1, executionPeriod2, 3, "2003/2004"); createOtherExecutionYears(executionYear, executionPeriod1, executionPeriod2, 4, "2002/2003"); createOtherExecutionYears(executionYear, executionPeriod1, executionPeriod2, 5, "2001/2002"); createOtherExecutionYears(executionYear, executionPeriod1, executionPeriod2, 6, "2000/2001");
    private static void createExecutionYears() {	final YearMonthDay yearMonthDay = new YearMonthDay();        final ExecutionYear executionYear = new ExecutionYear();        executionYear.setYear(constructExecutionYearString());        executionYear.setState(PeriodState.CURRENT);        final ExecutionPeriod executionPeriod1 = new ExecutionPeriod();        executionPeriod1.setSemester(Integer.valueOf(1));        executionPeriod1.setExecutionYear(executionYear);        executionPeriod1.setName("Semester 1");        final ExecutionPeriod executionPeriod2 = new ExecutionPeriod();        executionPeriod2.setSemester(Integer.valueOf(2));        executionPeriod2.setExecutionYear(executionYear);        executionPeriod2.setName("Semester 2");        executionPeriod1.setNextExecutionPeriod(executionPeriod2);        if (yearMonthDay.getMonthOfYear() < 8) {            final YearMonthDay previousYear = yearMonthDay.minusYears(1);            executionYear.setBeginDateYearMonthDay(new YearMonthDay(previousYear.getYear(), 9, 1));            executionYear.setEndDateYearMonthDay(new YearMonthDay(yearMonthDay.getYear(), 7, 31));            executionPeriod1.setBeginDateYearMonthDay(new YearMonthDay(previousYear.getYear(), 9, 1));            executionPeriod1.setEndDateYearMonthDay(new YearMonthDay(yearMonthDay.getYear(), 1, 31));            executionPeriod2.setBeginDateYearMonthDay(new YearMonthDay(yearMonthDay.getYear(), 2, 1));            executionPeriod2.setEndDateYearMonthDay(new YearMonthDay(yearMonthDay.getYear(), 7, 31));            if (yearMonthDay.getMonthOfYear() < 2) {                executionPeriod1.setState(PeriodState.CURRENT);                executionPeriod2.setState(PeriodState.OPEN);            } else {                executionPeriod1.setState(PeriodState.OPEN);                executionPeriod2.setState(PeriodState.CURRENT);                            }        } else {            executionYear.setBeginDateYearMonthDay(new YearMonthDay(yearMonthDay.getYear(), 9, 1));            executionYear.setEndDateYearMonthDay(new YearMonthDay(yearMonthDay.getYear() + 1, 7, 31));            executionPeriod1.setBeginDateYearMonthDay(new YearMonthDay(yearMonthDay.getYear(), 9, 1));            executionPeriod1.setEndDateYearMonthDay(new YearMonthDay(yearMonthDay.getYear() + 1, 1, 31));            executionPeriod2.setBeginDateYearMonthDay(new YearMonthDay(yearMonthDay.getYear() + 1, 2, 1));            executionPeriod2.setEndDateYearMonthDay(new YearMonthDay(yearMonthDay.getYear() + 1, 7, 31));            executionPeriod1.setState(PeriodState.CURRENT);            executionPeriod2.setState(PeriodState.OPEN);        }        new OccupationPeriod(executionPeriod1.getBeginDateYearMonthDay(), executionPeriod1.getEndDateYearMonthDay().minusDays(32));        new OccupationPeriod(executionPeriod1.getEndDateYearMonthDay().minusDays(31), executionPeriod1.getEndDateYearMonthDay());        new OccupationPeriod(executionPeriod2.getBeginDateYearMonthDay(), executionPeriod2.getEndDateYearMonthDay().minusDays(32));        new OccupationPeriod(executionPeriod2.getEndDateYearMonthDay().minusDays(31), executionPeriod2.getEndDateYearMonthDay());        new OccupationPeriod(executionPeriod2.getEndDateYearMonthDay().plusDays(31), executionPeriod2.getEndDateYearMonthDay().plusDays(46));        executionPeriod1.setInquiryResponseBeginDateTime(executionPeriod1.getBeginDateYearMonthDay().toDateTimeAtMidnight());        executionPeriod1.setInquiryResponseEndDateTime(executionPeriod1.getEndDateYearMonthDay().toDateTimeAtMidnight());        executionPeriod2.setInquiryResponseBeginDateTime(executionPeriod2.getBeginDateYearMonthDay().toDateTimeAtMidnight());        executionPeriod2.setInquiryResponseEndDateTime(executionPeriod2.getEndDateYearMonthDay().toDateTimeAtMidnight());    }