Here you can find the source of invoke(Object invoker, String cmd, Map params)
public static Object invoke(Object invoker, String cmd, Map params) throws IOException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Map; public class Main { public static Object invoke(Object invoker, String cmd, Map params) throws IOException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException { Method method = invoker.getClass().getMethod(cmd, Map.class); return method.invoke(invoker, params); }/*from w w w .java2 s. c o m*/ }