lastcall.set(task);
return (Y) converter.convert(method.getGenericReturnType(), null);
}
private <Y> Y invokeSync(Object proxy, Method method, Object[] args) throws Exception {
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);