int fromIndex = GenericBinarySearch.search(index, blockStopTimes.size(),
relativeFrom, IndexAdapters.BLOCK_STOP_TIME_DEPARTURE_INSTANCE);
int toIndex = GenericBinarySearch.search(index, blockStopTimes.size(),
relativeTo, IndexAdapters.BLOCK_STOP_TIME_ARRIVAL_INSTANCE);
InstanceState state = new InstanceState(serviceDate.getTime());
for (int in = fromIndex; in < toIndex; in++) {
BlockStopTimeEntry blockStopTime = blockStopTimes.get(in);
instances.add(new StopTimeInstance(blockStopTime, state));
}