String resourceName = WebModuleUtils.getLocationsResourceName(servletContext, LocationConstants.BOOTSTRAP_LOCATIONS_RESOURCE_PARAM);
if (resourceName == null) {
resourceName = "impala.properties";
}
final PropertiesLoader propertiesLoader = new ServletContextPropertiesLoader(servletContext, resourceName);
final WebContextLocationResolver locationResolver = new WebContextLocationResolver();
final ServletContextLocationsRetriever resolver = new ServletContextLocationsRetriever(servletContext, locationResolver, propertiesLoader);
final String[] toReturn = resolver.getContextLocations().toArray(new String[0]);
logger.info("Impala context locations: " + Arrays.toString(toReturn));