if (getLogger().isDebugEnabled()) {
getLogger().debug("Processing component configurations.");
getLogger().debug("Trying to read properties from directory: " + this.location);
}
final Properties mergedProps = new Properties();
final ServletContextResourcePatternResolver resolver = new ServletContextResourcePatternResolver(resourceLoader);
// final Resource dirResource = resourceLoader.getResource(this.location);
try {
Resource[] resources = resolver.getResources(this.location + "/*.properties");
if (resources != null) {
Arrays.sort(resources, ResourceUtils.getResourceComparator());
for (int i = 0; i < resources.length; i++) {
if (getLogger().isDebugEnabled()) {
getLogger().debug("Reading property file: " + resources[i]);