try {
Map<AgencyAndId, List<StopHopData>> stopHops = getStopHopData();
Map<AgencyAndId, List<StopTransferData>> stopTransfers = getStopTransferData();
StopTransferAndHopData allData = new StopTransferAndHopData();
allData.setTransferData(stopTransfers);
allData.setHopData(stopHops);
ObjectSerializationLibrary.writeObject(_bundle.getStopTransfersPath(),
allData);
_refreshService.refresh(RefreshableResources.STOP_TRANSFER_DATA);