IMHO , the original should not be modified, it contradicts the documentation. functions should match the ARX docs as closely as possible
- either, add the new objects to the database so they can be deleted later, or
- provide the data to generate the new objects.
Having to call (xdrx-object-swapid after source) or (xdrx-enitty-matchprop source after) seems very detoured, coming from an ARX perspective
just my opinion though