Updated TeacherService, fixed applicationContext.