protected void customizeContext(ServletContext servletContext,
ConfigurableWebApplicationContext applicationContext) {
final String initParameter = servletContext.getInitParameter(CONFIG_LOCATION_PARAM);
if (initParameter == null) {
final ServletContextResource servletContextResource = new ServletContextResource(servletContext, XmlWebApplicationContext.DEFAULT_CONFIG_LOCATION);
if (!servletContextResource.exists()) {
try {
applicationContext.setConfigLocation("classpath:META-INF/impala-web-empty.xml");
} catch (UnsupportedOperationException e) {
//no longer supported in Spring 3.2, so ignore this
}