Improved initialization of Application Context and of request attributes.
Added 4.1 check to SpringVersionUtils