}
// Re-establish inter-object links and links to other items
// and remove links to figures to make the gc work
// TODO Fix 4 This seems to produce some maintainReferences error: "Cannot resolve ... in Model /System"
process.maintainReferences(ModelObject.RESOLVE_GLOBAL_REFS | ModelObject.RESOLVE_LOCAL_REFS | ModelObject.UNLINK_FROM_REPRESENTATION);
if (copyFlavor != null && (process.getNodes().hasNext() || process.getTextElements().hasNext()))
{
Transferable ret = new SimpleTransferable(process, copyFlavor);