code: public static boolean shouldUnwrap(Class<? extends Exception> c) {
          return c.equals(CompletionException.class) || c.equals(ExecutionException.class);
      }
docs: Returns true if the provided class is CompletionException or ExecutionException which need to be unwrapped.
  @param c The class to be tested
  @return True if {@link #unwrap(Throwable)} should be called on exceptions of this type