@Override
protected List<? extends CalendarEvent> load() {
List<CalendarEvent> list = new ArrayList<CalendarEvent>();
for (Appointment a : Application.getBean(AppointmentDao.class).getAppointmentsByRange(WebSession.getUserId(), this.getStart(), this.getEnd())) {
CalendarEvent c = new OmCalendarEvent(a.getId().intValue(), a.getTitle(), a.getStart(), a.getEnd());
list.add(c);
}
return list;
}