// We will copy to our target process
ProcessDrawing drawing = (ProcessDrawing) workspaceView.drawing();
ProcessItem target = drawing.getProcess();
// Make sure the references names of the target are up to date
target.maintainReferences(ModelObject.SYNC_LOCAL_REFNAMES | ModelObject.SYNC_GLOBAL_REFNAMES);
// We need to make the names in the source process unique with respect to our target process
NamedObjectCollectionUtil.createUniqueNames(source.getNodeList(), target.getNodeList());
NamedObjectCollectionUtil.createUniqueNames(source.getTextElementList(), target.getTextElementList());
NamedObjectCollectionUtil.createUniqueNames(source.getDataLinkList(), target.getDataLinkList());