package com.bynder.sdk.query.decoder;

import com.bynder.sdk.query.MetapropertyAttribute;

import java.util.HashMap;
import java.util.Map;
import java.util.List;

public class MetapropertyAttributesDecoder implements
        ParameterDecoder<String, List<MetapropertyAttribute>> {

    @Override
    public Map<String, String> decode(final String name, final List<MetapropertyAttribute> metapropertyAttributes) {
        Map<String, String> parameters = new HashMap<>();

        metapropertyAttributes.stream().forEach(metapropertyAttribute -> {
            parameters.put(
                    String.format("%s.%s", name, metapropertyAttribute.getMetapropertyId()),
                    String.join(",", metapropertyAttribute.getOptionsIds())
                          );
        });

        return parameters;
    }
}

@@ -417,182 +417,113 @@
     
- Map%3CString, String%3E parameters = new HashMap%3C%3E();%0A%0A        metapropertyAttributes.stream().forEach(metapropertyAttribute -%3E %7B%0A            parameters.put(%0A                   
+return metapropertyAttributes.stream().collect(Collectors.toMap(%0A                metapropertyAttribute -%3E
  Str
@@ -608,19 +608,40 @@
         
-   
+metapropertyAttribute -%3E
  String.
@@ -700,68 +700,10 @@
     
-                   );%0A        %7D);%0A%0A        return parameters
+))
 ;%0A  

Update src/main/java/com/bynder/sdk/query/decoder/MetapropertyAttributesDecoder.java