ObjectNode dockNode = objectMapper.createObjectNode();
dockNode.put(EDITOR_BOUNDS_X, BpmnModelUtil.getBpmnShape(model, sequenceFlow.getSourceRef().getId()).getBounds().getWidth() / 2.0);
dockNode.put(EDITOR_BOUNDS_Y, BpmnModelUtil.getBpmnShape(model,sequenceFlow.getSourceRef().getId()).getBounds().getHeight() / 2.0);
dockersArrayNode.add(dockNode);
BPMNEdge bpmnEdge=BpmnModelUtil.getBpmnEdge(model, sequenceFlow.getId());
if (bpmnEdge.getWaypoint().size() > 2) {
for (int i = 1; i < bpmnEdge.getWaypoint().size() - 1; i++) {
Point graphicInfo = (bpmnEdge.getWaypoint().get(i));
dockNode = objectMapper.createObjectNode();
dockNode.put(EDITOR_BOUNDS_X, graphicInfo.getX());
dockNode.put(EDITOR_BOUNDS_Y, graphicInfo.getY());
dockersArrayNode.add(dockNode);
}