code: public static Collection<Object> createPropertyCollection(StructuralProperty property) {
          Class<?> fieldType = property.getJavaField().getType();
          if (List.class.isAssignableFrom(fieldType)) {
              return new ArrayList<>();
          } else if (Set.class.isAssignableFrom(fieldType)) {
              return new HashSet<>();
          } else {
              throw new ODataSystemException("Unsupported collection type '" + fieldType.getName() + "' for property: " +
                      property);
          }
      }
docs: Creates a new instance of a collection that is compatible with the specified property.
  <p>
  At the moment, only List and Set are supported. If the property is of a type that is not compatible with List
  or Set, an exception is thrown.
  
  @param property The property, which must be of a collection type.
  @return A new instance of a collection type that is compatible with the specified property.