class ReporterParameterParser {

    static Map<String, String> mapParameters(Set<String> parameters) {
        return parameters.stream()
                .map(p -> p.split(AbstractAntennaCLIOptions.PARAMETER_IDENTIFIER))
                .filter(sa -> {
                    if (sa.length != 2) {
                        throw new IllegalArgumentException(Arrays.toString(sa) + " does not have the proper format.");
                    } else {
                        return true;
                    }
                })
                .collect(Collectors.toMap(sa -> sa[0], sa -> sa[1]));
    }

    private  ReporterParameterParser();

}