private static Object invoke ( final Object target , final Method method , Object ... args ) { try { return method . invoke ( target , args ) ; } catch ( IllegalAccessException | InvocationTargetException e ) { throw new RuntimeException ( e ) ; } }
Invokes the specified method on the specified object and wrapping all exceptions in a RuntimeException .