- for(String key: map.keySet()){
- if (!key.equalsIgnoreCase("relationship-list")){ // ignore relationship data which is not required in aggregation
- this.attributes.put(key, map.get(key).toString()); // not sure if entity attribute can contain an object as value
+ for(Map.Entry<String, Object> entry: map.entrySet()){
+ String key = entry.getKey();
+ Object value = entry.getValue();
+ if (!"relationship-list".equalsIgnoreCase(key)){ // ignore relationship data which is not required in aggregation
+ this.attributes.put(key, value.toString()); // not sure if entity attribute can contain an object as value