{
URI uri = getURI(method, link, context);
if (uri == null)
return null;
ClientRequest request = context.getRequest();
EntityExtractorFactory extractor = context.getExtractorFactory();
ResteasyProviderFactory provider = request.getProviderFactory();
ClientExecutor executor = request.getExecutor();
return ProxyFactory.createClientInvoker(method.getClass(), method, uri,
executor, provider, extractor).invoke(args);
}
};
}