List<IWrittenTest> unenroledWrittenTests = getStudent().getUnenroledWrittenTests(); Collections.sort(unenroledWrittenTests, comparator);
if (unenroledWrittenTests == null) { unenroledWrittenTests = getStudent().getUnenroledWrittenTests(); Collections.sort(unenroledWrittenTests, comparator); attendingExecutionCourses.clear(); for (final IWrittenTest writtenTest : unenroledWrittenTests) { attendingExecutionCourses.put(writtenTest.getIdInternal(), writtenTest.getAttendingExecutionCoursesFor(getStudent())); } }
    public List<IWrittenTest> getUnenroledWrittenTests() throws FenixFilterException,            FenixServiceException {        List<IWrittenTest> unenroledWrittenTests = getStudent().getUnenroledWrittenTests();        Collections.sort(unenroledWrittenTests, comparator);        return unenroledWrittenTests;    }