How do I use the SetStateUtil.setObjectsState(Collection,State,boolean) method if my Collection consists of FlexObject types. The method is expecting LifecycleManaged objects types.
I'm creating a Collection object using the code below. The objects in the Collection are FlexObject type. I would assume that the setObjectsState method would convert the FlexObject types to LifeCycleManaged, but it doesn't. Do I really have to walk through the Collection and type cast each object and put it into a new Collection to use this method?