code: private void bindProgressProperty(final ServiceTaskBase<?> task, final DoubleProperty progressProperty) {
  
          // Perform this binding into the JAT to respect widget and task API
          JRebirth.runIntoJAT("Bind Progress Property to " + task.getServiceHandlerName(),
                              () -> {
                                  // Avoid the progress bar to display 100% at start up
                                  task.updateProgress(0, 0);
                                  // Bind the progress bar
                                  progressProperty.bind(task.workDoneProperty().divide(task.totalWorkProperty()));
                              });
  
      }
docs: Bind a task to a progress property to follow its progression.
  
  @param task the service task that we need to follow the progression
  @param progressBar graphical progress bar