DataLink link = (DataLink) itLinks.next();
if (link.getSourceParam() == oldVar || link.getTargetParam() == oldVar)
{
// DEBUG System.out.println ("Removing data link " + link.getName () + " from " + link.getSourceParam ().getPath () + " to " + link.getTargetParam ().getPath ());
ProcessVariableConnection con = (ProcessVariableConnection) link.getRepresentation();
con.release();
// Remove the link itself
currentProcess.removeDataLink(link);
}
}