LoggerFactory.getLogger().fatal("Bad request! \nClass:" + request.getApplicationName() + "\nMethod:" + request.getMethodName() + "\nArgs:" + request.getArgs());
return null;
}
// Get an instance of the requested application
Application application = register.getInstance(request.getApplicationName());
if (application == null) {
LoggerFactory.getLogger().fatal(String.format("Can't load class %s.", request.getApplicationName()));
return null;
}
// Invoke target method
return application.invokeMethod(request.getMethodName(), request.getArgs().toArray());
}