ApplicationContext context = WebApplicationContextUtils .getWebApplicationContext(request.getSession().getServletContext());