}
});
// The Saga will schedule some deadlines in our sample
final ScheduledExecutorService executorService = newSingleThreadScheduledExecutor();
EventScheduler eventScheduler = new SimpleEventScheduler(executorService, eventBus);
// we need to store a Saga somewhere. Let's do that in memory for now
InMemorySagaRepository sagaRepository = new InMemorySagaRepository();
// we want to inject resources in our Saga, so we need to tweak the GenericSagaFactory