String endDateParam = params.get(clientId + "_end");
Date startDate = new Date(Long.valueOf(startDateParam));
Date endDate = new Date(Long.valueOf(endDateParam));
LazyScheduleModel lazyModel = ((LazyScheduleModel) model);
lazyModel.clear(); //Clear old events
lazyModel.loadEvents(startDate, endDate); //Lazy load events
}
encodeEventsAsJSON(context, schedule, model);
}