Code example for Method

Methods: invoke, isAccessible, setAccessible

0
                 + " of " + implementation.getClass() + ". Retrying."
                 + StringUtils.stringifyException(e));
      } 
    } 
  } 
 
  private Object invokeMethod(Method method, Object[] args) throws Throwable {
    try { 
      if (!method.isAccessible()) {
        method.setAccessible(true);
      } 
      return method.invoke(implementation, args);
    } catch (InvocationTargetException e) {
      throw e.getCause();
    } 
  } 
 
}