Improved initialization of Application Context and of request attributes.