* @param name The name of the method
* @param args An arguments of the method
* @return Response of the invoked method
*/
public Object invokeMethod(String name, Object ... args) {
HiveMethod hiveMethod = getApplicationMethod(name);
if (hiveMethod == null) {
LoggerFactory.getLogger().error("Can't find requested method!");
return null;
}
Method method;
try {
method = hiveMethod.getReflectionMethod(jcl, instance);
} catch (Exception e) {
LoggerFactory.getLogger().error("Can't reflect method!", e);
return null;
}