class FormatRegistrationService {

    public ExportFormat getByName(String formatName) {
        return types
                .stream() //
                .filter(f -> equalsIgnoreCase(formatName, f.getName())) //
                .findFirst() //
                .orElse(null);
    }

    public  FormatRegistrationService(List<ExportFormat> types);

}