@Override
public boolean moveBendpoint(IMoveBendpointContext context) {
boolean moved = super.moveBendpoint(context);
try {
FreeFormConnection connection = context.getConnection();
BaseElement element = (BaseElement) BusinessObjectUtil.getFirstElementOfType(connection, BaseElement.class);
ModelHandler modelHandler = ModelHandlerLocator.getModelHandler(getDiagram().eResource());
BPMNEdge edge = (BPMNEdge) modelHandler.findDIElement(getDiagram(), element);
int index = context.getBendpointIndex() + 1;
Point p = edge.getWaypoint().get(index);
p.setX(context.getX());