@Bean
public StateScopeManager stateScopeManager() {
List<StateScope> stateScopes = new ArrayList<StateScope>();
stateScopes.add(userSessionStateScope());
stateScopes.add(appStateScope());
DefaultStateScopeManager scopeManager = new DefaultStateScopeManager(stateScopes);
return scopeManager;
}