I have been tasked with refactoring some components that used xmlbeans to now make use of jaxb. Everything is going great, until I get to a place where the previous author has called the copy() function of one of the XmlObjects. Since all objects in xmlbeans extend XmlObject, we get the magic deep copy function for free.
Jaxb does not seem to provide this for us. What is the correct and simple way to make a deep copy of a Jaxb object?