private static final Log log = LogFactory.getLog(SecurityContextBootstrapper.class);
@Override
public void startup(Injector injector, ServletContext servletContext) {
final AuthenticationManager authenticationManager = injector.getInstance(AuthenticationManager.class);
final AccessDecisionManager httpRequesetAccessDecisionManager =
injector.getInstance(Key.get(AccessDecisionManager.class, Names.named(AcegiModule.ADM_HTTP_REQUEST)));
log.debug("Setting security context..");
servletContext.setAttribute(SecurityContext.KEY, new SecurityContext(authenticationManager,
httpRequesetAccessDecisionManager));