public static Throwable rootCause(final Throwable throwable) {
    return throwable != null ? Throwables.getRootCause(throwable) : null;
  }
Returns the root cause of an exception

@param throwable the throwable whose root cause we want to find
@return The root cause
util/src/main/java/org/hyperledger/besu/util/ExceptionUtils.java