@Secured({"ROLE_AUTOMATIC_MEDIATOR","ROLE_ADMIN"})
@RequestMapping(value="/{schoolId}/courses", method=RequestMethod.GET)
public String getCourses(@PathVariable Long schoolId, Model model, Locale locale,
@RequestParam(defaultValue="1", required=false) Integer page) {
try {
School school = this.serviceLocator.getSchoolService().getSchool(schoolId, locale);
model.addAttribute("school", school);
PageManager<Course> paginator = new PageManager<Course>();
paginator.setOffset(this.getPageSize());
paginator.setUrlBase("/" + locale.getLanguage()+ "/course/list");
paginator.setStart((page-1)*paginator.getOffset());