@RequestMapping(value="/{schoolId}/courses", method=RequestMethod.GET)
public String getCourses(@PathVariable Long schoolId, Model model, Locale locale,
@RequestParam(defaultValue="1", required=false) Integer page,@RequestParam(defaultValue="", required=false) String order) {
try {
String ordering = order != null && !("").equals(order) ? order : "title";
ExtendedSchool school = this.serviceLocator.getExtendedSchoolService().getSchool(schoolId, locale);
Collection<ExtendedCourse> courses = this.serviceLocator.getExtendedCourseService().getCoursesBySchool(school.getId(), "title", locale);
model.addAttribute("school", school);
model.addAttribute("courses", courses);
PageManager<ExtendedCourse> paginator = new PageManager<ExtendedCourse>();
paginator.setOffset(this.getPageSize());
paginator.setUrlBase("/" + locale.getLanguage()+ "/extended/school/" +