private static void registerPropertiesFile(String name, String location, ConfigurableWebApplicationContext applicationContext) {
String resolvedLocation = applicationContext.getEnvironment().resolvePlaceholders(location);
final Resource resource = applicationContext.getResource(resolvedLocation);
try {
final Properties props = PropertiesLoaderUtils.loadProperties(resource);
final PropertiesPropertySource ps = new PropertiesPropertySource(name, props);
applicationContext.getEnvironment().getPropertySources().addFirst(ps);
} catch (FileNotFoundException e) {
log.warn("config file not found (" + resolvedLocation + ")");
} catch (IOException e1) {