code: public final void restartTask (final ITask task) throws ExecutionException {
  
          try {
              if (task != null) {
                  if (task instanceof IOTask) {
                      executor.submit((IOTask) task);
                  } else {
                      task.call();
                  }
                  taskBalancer.releaseConnection(outstandingTasks.get(task));
                  outstandingTasks.remove(task);
              }
              LOGGER.debug("Restarted a Task out of the outstandingTasks Queue");
          } catch (Exception e) {
              throw new ExecutionException(e);
          }
      }
docs: restarts a Task from outstandingTasks.
  
  @param task The failed Task.
  @throws ExecutionException for failed restart of the task