if (isClone)
{
Object clone = graph.cloneCells(new Object[] { edge })[0];
Object parent = model.getParent(edge);
graph.addCells(new Object[] { clone }, parent);
Object other = model.getTerminal(edge, !isSource);
graph.connectCell(clone, other, !isSource);
graph.setSelectionCell(clone);