for (BlockEntry block : _transitGraphDao.getAllBlocks()) {
for (BlockConfigurationEntry blockConfig : block.getConfigurations()) {
List<BlockStopTimeEntry> stopTimes = blockConfig.getStopTimes();
BlockStopTimeEntry prevBlockStopTime = null;
for (BlockStopTimeEntry blockStopTime : stopTimes) {
if (prevBlockStopTime != null) {
StopTimeEntry from = prevBlockStopTime.getStopTime();
StopTimeEntry to = blockStopTime.getStopTime();
int time = to.getArrivalTime() - from.getDepartureTime();
StopEntry stopFrom = from.getStop();
StopEntry stopTo = to.getStop();