docs: private static <T extends EntityResponse> T waitFor(InvokeFuture<T> future)
        throws EntityException {
      boolean interrupted = Thread.interrupted();
      try {
        while (true) {
          try {
            return future.get();
          } catch (InterruptedException e) {
            interrupted = true;
          }
        }
      } finally {
        if (interrupted) {
          Thread.currentThread().interrupt();
        }
      }
    }