How to adapt OOTB ContentFragmentList sling model in another sling model
Hi,
I am trying to adapt OOTB ContentFragmentList sling model.
I am extending OOTB ContentFragmentList.

At Line 28, While evaluating the right side, I am getting the expected result as a List of content fragments. But it's throwing below exception while assigning the value to the right side.
Caused by: java.lang.ClassCastException: com.adobe.cq.wcm.core.components.internal.models.v1.contentfragment.ContentFragmentListImpl cannot be cast to com.adobe.cq.wcm.core.components.models.contentfragment.ContentFragmentList