LOGGER.info("invoking method {}", method);
JsonUtils.convertAllArgs(request);
LOGGER.info("argument: ", request.getArgs()[0].getClass());
Object result = method.invoke(connector, request.getArgs());
if (method.getReturnType().equals(void.class)) {
MethodResult methodResult = new MethodResult();
methodResult.setClassName(Object.class.getName());
methodResult.setType(ReturnType.Void);
return methodResult;
}
LOGGER.debug("invocation successful");
MethodResult methodResult = new MethodResult(result);
invocationHistory.put(request, methodResult);
return methodResult;
} catch (InvocationTargetException e) {
return makeExceptionResult((Exception) e.getTargetException());
} catch (IllegalArgumentException e) {