public <R> R invoke(Object target, Object... args) {
      try {
        return this.invokeChecked(target, args);
      } catch (Exception e) {
        Throwables.throwIfInstanceOf(e, RuntimeException.class);
        Throwables.throwIfUnchecked(e.getCause());
        throw new RuntimeException(e.getCause());
      }
    }
Convenience wrapper class around {@link java.lang.reflect.Method}.

<p>Allows callers to invoke the wrapped method with all Exceptions wrapped by RuntimeException,
or with a single Exception catch block.
amoro-common/src/main/java/org/apache/amoro/utils/DynMethods.java