public static Object invokeMethod(Method method,Object target,Object[] args) throws Throwable {
  try {
    return method.invoke(target,args);
  }
 catch (  InvocationTargetException e) {
    throw e.getCause();
  }
}

public static Object invokeMethod ( Method method , Object target , Object [ ] args ) throws Throwable { try { return method . invoke ( target , args ) ; } catch ( InvocationTargetException e ) { throw e . getCause ( ) ; } }
reflectively invokes the given method . invocationtargetexcpetion ' s thrown will be unfolded .
