code: @Override
      public boolean checkProgressRatio(final double newWorkDone, final double totalWork, final double amountThreshold) {
  
          double currentRatio;
          synchronized (this) {
              // Compute the actual progression
              currentRatio = this.localWorkDone >= 0 ? 100 * this.localWorkDone / totalWork : 0.0;
          }
  
          // Compute the future progression
          final double newRatio = 100 * newWorkDone / totalWork;
  
          // return true if the task has progressed of at least block increment value
          return newRatio - currentRatio > amountThreshold;
      }
docs: Check if the task has enough progressed according to the given threshold.
  
  This method can be called outside the JAT, it's useful to filter useless call to JAT
  
  @param newWorkDone the amount of work done
  @param totalWork the total amount of work
  @param amountThreshold the minimum threshold amount to return true; range is [0.0 - 100.0] (typically 1.0 for 1%)
  
  @return true if the threshold is reached