this.injector = injector;
}
@SuppressWarnings({"rawtypes", "unchecked"})
public void service(HttpServletResponse res) {
RestCallSpec callSpec = injector.getInstance(RestCallSpec.class);
Preconditions.checkNotNull(callSpec);
Gson gson = injector.getInstance(Gson.class);
RestRequestBase<?, ?> restRequest = injector.getInstance(RestRequestBase.class);
RestResponseBase.Builder response = new RestResponseBase.Builder(callSpec.getResponseSpec());
RestResponseBaseBuilder responseBuilder = injector.getInstance(RestResponseBaseBuilder.class);
WebContext context = injector.getInstance(WebContext.class);
responseBuilder.buildResponse(context, restRequest, response);
RestResponseBase webServiceResponse = response.build();
RestResponseSender responseSender = new RestResponseSender(gson);