if (addFeature != null && addFeature.canAdd(context)) {
context.putProperty(IMPORT_PROPERTY, true);
Connection connection = (Connection) addFeature.add(context);
if (connection instanceof FreeFormConnectionImpl) {
FreeFormConnectionImpl freeForm = (FreeFormConnectionImpl) connection;
List<Point> waypoint = bpmnEdge.getWaypoint();
int size = waypoint.size() - 1;
setAnchorLocation(sourceElement, sourceAnchor, waypoint.get(0));