authenticationManager = applicationContext.getBean(AuthenticationManager.class);
} catch (NoSuchBeanDefinitionException ex) {
authenticationManager = null;
}
AccessDecisionManager accessDecisionManager;
try {
accessDecisionManager = applicationContext.getBean(AccessDecisionManager.class);
} catch (NoSuchBeanDefinitionException ex) {
accessDecisionManager = null;
}