public static ConnectionFigure dupConnectionFigure(ConnectionFigure cfSrc
, HashMap<String,String> mName , HashMap<String,Figure> mFigure
, 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());