try {
Set<Class<? extends Module>> moduleClasses = scanModuleClasses();
Set<Module> providedModules = getModulesFromProvider();
AppProperties appProps = new DefaultAppProperties();
context.setAttribute(AppProperties.KEY, appProps);
GuiceInitializer guiceInitializer =
new GuiceInitializer(moduleClasses, providedModules, appProps);
Injector injector = guiceInitializer.initializeInjector();
context.setAttribute(GuiceInitializer.KEY, injector);