ControlLink link = (ControlLink) it.next();
target.addControlLink(link);
// Determine the reference names after adding the object to the target
link.maintainReferences(ModelObject.SYNC_LOCAL_REFNAMES);
FlowConnection flowConnection = drawing.createFlowConnection(link);
if (flowConnection == null)
{
target.removeControlLink(link);