class StringArrayToMapConverter implements Converter<String[], Map<String, String>> {

    @Override
    public Map<String, String> convert(String[] source) {
        return ObjectUtils.isEmpty(source) ? null : CollectionUtils.toStringMap(source);
    }

}