class DatabaseFDFlowManager extends BaseService implements FDFlowManager {

    @Override
    public List<FDFlowMetadata> getAvailableFlows() {
        final List<FDFlowMetadata> flowMetadataList = new ArrayList<>();

        for (final FDFlowEntity flowEntity : flowRepository.findAll()) {
            final FDFlowMetadata flowMetadata = modelMapper.map(flowEntity, FDFlowMetadata.class);
            flowMetadataList.add(flowMetadata);
        }

        return flowMetadataList;
    }

    @Autowired public  DatabaseFDFlowManager(final FDFlowRepository flowRepository,
                                 final FDFlowEventRepository flowEventRepository,
                                 final OptionalModelMapper modelMapper,
                                 final ObjectMapper objectMapper,
                                 final Validator validator);

}