AI-499 : avoid ClassCastException in NestedFieldBinding :
java.lang.ClassCastException: org.activityinfo.api.shared.model.PartnerDTO cannot be cast to org.activityinfo.api.shared.model.EntityDTO