public Object invoke(Object[] args)
{
ClientInvocation request = createRequest(args);
ClientResponse response = (ClientResponse)request.invoke();
ClientContext context = new ClientContext(request, response, entityExtractorFactory);
return extractor.extractEntity(context, null);
}