/**
   * Constructor with a {@link GeometryEditService}, that if stopped, stops this service as well.
   *
   * @param service the {@link GeometryEditService} that needs to be used
   */
  public GeometrySplitService(GeometryEditService service) {
    this.service = service;
    eventBus = new SimpleEventBus();

    service.addGeometryEditStopHandler(
        new GeometryEditStopHandler() {

          @Override
          public void onGeometryEditStop(GeometryEditStopEvent event) {
            if (started) {
              stop(null);
            }
          }
        });
  }