Improved: Use ‘ServletRequest#getServletContext’ when possible (OFBIZ-11129) Avoid unecessary casts by using ‘ServletRequest#getServletContext’ instead of ‘ServletRequest#getAttribute’. This method is available since Servlet specification 3.0.