, DrawingView dvDest) {
ConnectionFigure result = null;
if (cfSrc instanceof AttributeConnection) {
result = new AttributeConnection();
} else if (cfSrc instanceof DecomposeConnection) {
result = new DecomposeConnection();
} else if (cfSrc instanceof ConstraintConnection) {
result = new ConstraintConnection((String)cfSrc.getAttribute("type"));
((ConstraintConnection)result).setStartDecoration(((ConstraintConnection)cfSrc).getStartDecoration());
((ConstraintConnection)result).setMidDecoration(((ConstraintConnection)cfSrc).getMidDecoration());
((ConstraintConnection)result).setEndDecoration(((ConstraintConnection)cfSrc).getEndDecoration());