@Override
  protected void waitTillProcessingDone() {
    if (inferenceWorker == null) {
      return;
    }
    if (inferenceWorker.isDone()) {
      return;
    }
    while (true) {
      synchronized (inferenceWorker) {
        try {
          inferenceWorker.wait(10);
        } catch (InterruptedException ie) {
          // @todo set warning
          return;
        }
        if (inferenceWorker.isDone()) {
          return;
        }
      }
    }
  }