code: public static <T> T invoke(Object target, Method method, Object... parameters) {
          try {
              @SuppressWarnings("unchecked")
              T returnValue = (T) method.invoke(target, parameters);
              return returnValue;
          } catch (InvocationTargetException e) {
              throw handleException(method.getName(), e);
          } catch (IllegalAccessException e) {
              throw handleException(method.getName(), e);
          }
      }
docs: Invoke target method
  
  @param target     Object target
  @param method     method to invoke
  @param parameters method parameters
  @param <T> Object generic type
  @return return value