Gson gson = injector.getInstance(GsonBuilder.class)
.registerTypeAdapterFactory(new ResponseBodyGsonTypeAdapterFactory(responseSpec.getBodySpec()))
.create();
ResponseSender responseSender = new ResponseSender(gson);
WebServiceResponse response = buildResponse(responseSpec, webServiceRequest);
responseSender.send(res, response);
}
protected abstract WebServiceResponse buildResponse(ResponseSpec responseSpec,
WebServiceRequest webServiceRequest);
}