class Flow2Config {

    @Bean
    public Set<String> retryableEvents(List<RetryableFlowConfiguration<?>> retryableFlowConfigurations) {
        return retryableFlowConfigurations.stream()
                .map(RetryableFlowConfiguration::getRetryableEvent)
                .map(FlowEvent::event)
                .collect(Collectors.toSet());
    }

}