*/
public void mouseReleased(EditorMouseEvent event) {
double mx = event.getX(), my = event.getY();
DiagramElement elem = editor.getDiagram().getChildAt(mx, my);
if (source != null && isValidTarget(elem)) {
UmlConnection conn =
editor.getDiagram().getElementFactory().createConnection(relationType,
(UmlNode) source, (UmlNode) elem);
connectMethod.generateAndSetPointsToConnection(conn, source,
(UmlNode) elem, anchor, tmpPos);
AddElementCommand command = new AddElementCommand(editor,