protected S createNewInstance(Class<S> sagaClass, String sagaId, SagaConfig<S, E> sagaConfig) { SagaFactory<S> factory = sagaConfig.sagaFactory(); return factory.createSaga(sagaId); }
protected String commitId(S saga, E event, SagaConfig<S, E> config) { SagaCommitIdGenerationStrategy<S, E> strat = config.sagaCommitIdGenerationStrategy(); return strat.generateCommitId(saga, event); }