InjectorHolder.getInjector().inject(strategy, DomainAuthorizationStrategy.class);
getSecuritySettings().setAuthorizationStrategy(strategy);
}
private void initWebEnvironment() {
DefaultWebEnvironment environment = new DefaultWebEnvironment();
SecurityManagerHolder manager = new SecurityManagerHolder();
InjectorHolder.getInjector().inject(manager, SecurityManagerHolder.class);
environment.setSecurityManager(manager.getWebSecurityManager());
getServletContext().setAttribute(EnvironmentLoader.ENVIRONMENT_ATTRIBUTE_KEY, environment);
}