taglibs/src/main/java/org/springframework/security/taglibs/authz/AccessControlListTag.java
protected ApplicationContext getContext(PageContext pageContext) {
		ServletContext servletContext = pageContext.getServletContext();

		return SecurityWebApplicationContextUtils.findRequiredWebApplicationContext(servletContext);
	}
protected ApplicationContext getContext(PageContext pageContext) {
		ServletContext servletContext = pageContext.getServletContext();

		return SecurityWebApplicationContextUtils.findRequiredWebApplicationContext(servletContext);
	}
Allows test cases to override where application context obtained from.

@param pageContext so the <code>ServletContext</code> can be accessed as required
by Spring's <code>WebApplicationContextUtils</code>

@return the Spring application context (never <code>null</code>)