}
private ScheduledBlockLocationBean getBlockLocationAsBean(
ScheduledBlockLocation blockLocation) {
ScheduledBlockLocationBean bean = new ScheduledBlockLocationBean();
if (blockLocation.getActiveTrip() != null) {
BlockTripBean activeTrip = getBlockTripAsBean(blockLocation.getActiveTrip());
bean.setActiveTrip(activeTrip);
}
bean.setDistanceAlongBlock(blockLocation.getDistanceAlongBlock());
bean.setInService(blockLocation.isInService());
bean.setLocation(blockLocation.getLocation());
bean.setScheduledTime(blockLocation.getScheduledTime());
bean.setStopTimeIndex(blockLocation.getStopTimeIndex());
return bean;
}