}
if (directionId != null) {
directionId = agencyId + "_" + directionId;
}
ArrivalsAndDeparturesQueryBean arrivalsQuery = new ArrivalsAndDeparturesQueryBean();
arrivalsQuery.setTime(_time.getTime());
arrivalsQuery.setMinutesBefore(60);
arrivalsQuery.setMinutesAfter(90);
arrivalsQuery.setFrequencyMinutesBefore(60);
arrivalsQuery.setFrequencyMinutesAfter(90);
StopWithArrivalsAndDeparturesBean stopWithArrivalsAndDepartures = _transitDataService.getStopWithArrivalsAndDepartures(
stopId, arrivalsQuery);
if (stopWithArrivalsAndDepartures == null) {
throw new IllegalArgumentException("Bogus stop parameter");