Evaluations evaluations = Evaluations.inst();
List<Evaluation> evaluationList = evaluations.activateEvaluations();
List<Student> studentList;
Course course;
Accounts accounts = Accounts.inst();
for(Evaluation e: evaluationList)
{
// Send registration keys to unregistered students
Courses courses = Courses.inst();
studentList = courses.getUnregisteredStudentList(e.getCourseID());
course = courses.getCourse(e.getCourseID());
Coordinator coord = accounts.getCoordinator(course.getCoordinatorID());
courses.sendRegistrationKeys(studentList, course.getID(), course.getName(),
coord.getName(),
coord.getEmail());
// Send e-mails to inform the students that an evaluation is opened
studentList = courses.getStudentList(e.getCourseID());