final Set<SequenceEvent> sequenceEvents = storage.readEvents(workflowInstance);
final List<TimestampedPersistentEvent> timestampedPersistentEvents = sequenceEvents.stream()
.map(sequenceEvent -> TimestampedPersistentEvent.create(
convertEventToPersistentEvent(sequenceEvent.event()),
sequenceEvent.timestamp()))
<BUG>.collect(Collectors.toList());
return EventsPayload.create(timestampedPersistentEvents);</BUG>
} catch (IOException e) {
throw Throwables.propagate(e);
}

final Set<SequenceEvent> sequenceEvents = storage.readEvents(workflowInstance);
final List<TimestampedPersistentEvent> timestampedPersistentEvents = sequenceEvents.stream()
.map(sequenceEvent -> TimestampedPersistentEvent.create(
convertEventToPersistentEvent(sequenceEvent.event()),
sequenceEvent.timestamp()))
.collect(toList());
return EventsPayload.create(timestampedPersistentEvents);
} catch (IOException e) {
throw Throwables.propagate(e);
