// Exam end event if (objectiveFlow.getObjectiveId().equalsIgnoreCase(Objective.EndObjectiveId)) { handleExamFinished(); System.out.println("Exam end"); if (currentObjective != numberOfObjectives) { System.out.println("Got end exam before all objectives was received!"); } handleExamFinished(); }