WebContextSpec webContextSpec = resourceQuery.getWebContextSpec();
WebServiceCallSpec spec = ResourceQueryUtils.generateCallSpec(callPath,
resourceQuery.getResourceType(), resourceQuery.getQueryType(),
webContextSpec);
RequestSpec requestSpec = spec.getRequestSpec();
RequestReceiver requestReceiver = new RequestReceiver(gsonBuilder.get(), requestSpec);
WebServiceRequest webServiceRequest = requestReceiver.receive(req);
ResourceQueryParams queryParams =
(ResourceQueryParams) webServiceRequest.getUrlParameters().getParamsObject();
WebContext context = new WebContextExtractor(webContextSpec).extract(webServiceRequest.getHeaders());
List results = resourceQuery.query(queryParams, context);