public static Object invokeMethod(Object target, String method, Object... args) {
    try {
      return InvokerHelper.invokeMethod(target, method, args);
    } catch (InvokerInvocationException e) {
      ExceptionUtil.sneakyThrow(e.getCause());
      return null; // never reached
    }
  }
public static Object invokeMethod ( Object target , String method , Object ... args ) { try { return InvokerHelper . invokeMethod ( target , method , args ) ; } catch ( InvokerInvocationException e ) { ExceptionUtil . sneakyThrow ( e . getCause ( ) ) ; return null ; } }
Note: This method may throw checked exceptions although it doesn't say so.