GadgetsHandlerService service = new GadgetsHandlerService(timeSource, processor, urlGenerator,
codec, proxyUriManager, jsUriManager, proxyHandler, jsPipeline, jsRequestBuilder,
SPEC_REFRESH_INTERVAL, beanFilter, cajaContentRewriter, gadgetAdminStore,
featureRegistryProvider, new ModuleIdManagerImpl(),config);
GadgetsHandler handler = new GadgetsHandler(new ImmediateExecutorService(), service, beanFilter);
registry = new DefaultHandlerRegistry(injector, converter,
new HandlerExecutionListener.NoOpHandler());
registry.addHandlers(ImmutableSet.<Object> of(handler));
}