I want to copy (clone) a model object. The model object consists of attributes and other (deep) structures (position, sub-position etc.).
I don't want to copy each attribute of each structure. Is there a way to make a copy of the whole model object recursively, without knowing how the structure looks like, so that I can use this clone-method for all model objects?
Thanks for any help,