@Override
public StopScheduleBean getScheduleForStop(String stopId, Date date)
throws ServiceException {
StopScheduleBean bean = new StopScheduleBean();
bean.setDate(date);
AgencyAndId id = convertAgencyAndId(stopId);
StopBean stopBean = _stopBeanService.getStopForId(id);
if (stopBean == null)
return null;
bean.setStop(stopBean);
ServiceDate serviceDate = new ServiceDate(date);
List<StopRouteScheduleBean> routes = _stopScheduleBeanService.getScheduledArrivalsForStopAndDate(
id, serviceDate);
bean.setRoutes(routes);
StopCalendarDaysBean calendarDays = _stopScheduleBeanService.getCalendarForStop(id);
bean.setCalendarDays(calendarDays);
return bean;
}