private void loadProps() {
        if (locations == null) {
            return;
        }
        logger.debug("Getting Config");

        properties = new Properties();

        for (String location : locations) {
            location = location.trim();
            try {
                List<Resource> resources = getResources(location);
                for (Resource resource : resources) {
                    try {
                        InputStream in = resource.getInputStream();
                        properties.load(in);
                        logger.info("load {}", resource);
                        in.close();
                    } catch (Exception e) {
                        logger.error("Error load resource {}", resource);
                    }
                }
            } catch (Exception e) {
                logger.error("Error reading " + location + ", " + e);
                logger.error("Ensure the " + location + " file is readable and in your classpath.");
            } finally {
                
            }
        }
        logger.info("Properties " + properties);
    }