return executionFactory;
}
private DefaultFlowExecutionRepository getFlowExecutionRepository(FlowExecutionFactory executionFactory) {
ConversationManager manager = getConversationManager();
FlowExecutionSnapshotFactory snapshotFactory = getSnapshotFactory(executionFactory);
DefaultFlowExecutionRepository repository = new DefaultFlowExecutionRepository(manager, snapshotFactory);
if (this.maxFlowExecutionSnapshots != null) {
repository.setMaxSnapshots((this.maxFlowExecutionSnapshots == 0) ? 1 : this.maxFlowExecutionSnapshots);
}
return repository;