public void fillCollectionProperty(Object entity,Set<String> keySet,StructuralProperty property,Field field,String node,Map<String,Object> map) throws ODataException {
  for (  String target : keySet) {
    if (node.equalsIgnoreCase(target)) {
      Iterable subValues=(Iterable)map.get(target);
      List<Object> valueList=new ArrayList<>();
      for (      Object subValue : subValues) {
        Object value=getFieldValueByType(property.getElementTypeName(),subValue,map,true);
        if (value != null) {
          valueList.add(value);
        }
      }
      setFieldValue(field,entity,valueList);
      break;
    }
  }
}

public void fillCollectionProperty ( Object entity , Set < String > keySet , StructuralProperty property , Field field , String node , Map < String , Object > map ) throws ODataException { for ( String target : keySet ) { if ( node . equalsIgnoreCase ( target ) ) { Iterable subValues = ( Iterable ) map . get ( target ) ; List < Object > valueList = new ArrayList < > ( ) ; for ( Object subValue : subValues ) { Object value = getFieldValueByType ( property . getElementTypeName ( ) , subValue , map , true ) ; if ( value != null ) { valueList . add ( value ) ; } } setFieldValue ( field , entity , valueList ) ; break ; } } }
populates the collection property of the entity with field values .
