}
private static <R extends RestResource<R>, Q extends ResourceQueryParams> Injector buildInjector(
ResourceQuery<R, Q> queryHandler, GsonBuilder serverGsonBuilder,
ResourceUrlPaths urlPaths, CallPath queryCallPath, GreazeFilterChain filters) {
GreazeServerModule gsm = new GreazeServerModule(
urlPaths.getServletPath(), ImmutableList.of(queryCallPath), urlPaths.getResourcePrefix());
Module module = new RestModuleBuilder()
.setResourceQueryHandler(queryHandler)
.setGreazeFilterChain(filters)
.setServerGsonBuilder(serverGsonBuilder)