Request request = new Request();
request.id = counter.incrementAndGet();
request.method = method.getName();
request.params = new ExtList<Object>(args);
Response response = host.put(JSONRPC_2_0 + endpoint, request, Response.class, null);
if (response.error != null)
throw new JSONRpcException(response.error);
if (method.getReturnType() == void.class || method.getReturnType() == Void.class || response.result == null)