And replace "session" with WebApplicationContext.SCOPE_SESSION

Comment From: wilkinsona

Thanks, @quaff. As part of merging this, I switched from the constants on BeanDefinition to those on ConfigurableBeanFactory as the latter is what the javadoc of @Scope recommends.