public IStateCache stateCache() {
SecurityConfigBuilder builder = this.securityConfigBuilder();
int maxPagesPerSession = builder.getMaxPagesPerSession();
StateCache stateCache = new StateCache();
if (maxPagesPerSession > 0) {
stateCache.setMaxSize(maxPagesPerSession);
}
return stateCache;
}