exchange regenerated code, since multiple classes as property domain
cannot be stated as a union