parquet-hadoop/src/main/java/org/apache/parquet/hadoop/util/ContextUtil.java
private static Object invoke(Method method, Object obj, Object... args) {
    try {
      return method.invoke(obj, args);
    } catch (IllegalAccessException e) {
      throw new IllegalArgumentException("Can't invoke method " + method.getName(), e);
    } catch (InvocationTargetException e) {
      throw new IllegalArgumentException("Can't invoke method " + method.getName(), e);
    }
  }
private static Object invoke(Method method, Object obj, Object... args) {
    try {
      return method.invoke(obj, args);
    } catch (IllegalAccessException e) {
      throw new IllegalArgumentException("Can't invoke method " + method.getName(), e);
    } catch (InvocationTargetException e) {
      throw new IllegalArgumentException("Can't invoke method " + method.getName(), e);
    }
  }
private static Object invoke ( Method method , Object obj , Object ... args ) { try { return method . invoke ( obj , args ) ; } catch ( IllegalAccessException e ) { throw new IllegalArgumentException ( "Can't invoke method " + method . getName ( ) , e ) ; } catch ( InvocationTargetException e ) { throw new IllegalArgumentException ( "Can't invoke method " + method . getName ( ) , e ) ; } }
Invokes a method and rethrows any exception as runtime exceptions.

@param method a method
@param obj an object to run method on
@param args an array of arguments to the method
@return the result of the method call
Invokes a method and rethrows any exception as runtime exceptions .