ConnectionEditPart connectionEditPart = (ConnectionEditPart)getHost();
if (connectionEditPart.getSource() == connectionEditPart.getTarget())
{
return null;
}
BendPointCommand com = new DeleteBendPointCommand();
Point p = request.getLocation();
com.setLocation(p);
com.setDiagramConnectionModel((DiagramConnectionModel) request.getSource().getModel());
com.setIndex(request.getIndex());
return com;
}