Remove does not work if references have not yet been resolved
The field access must be replaced by a list accessor, otherwise the following remove operation fails, because the object is not in the list (only an unresolved reference to it).
The field access must be replaced by a list accessor, otherwise the following remove operation fails, because the object is not in the list (only an unresolved reference to it).