code: public static Throwable unwrapCompletionException(Throwable throwable)
      {
          if (throwable instanceof CompletionException) {
              return firstNonNull(throwable.getCause(), throwable);
          }
          return throwable;
      }
docs: Attempts to unwrap a throwable that has been wrapped in a {@link CompletionException}.