private static String replaceMacrosFromConfig(String macro) {
        String result = macro;
        Matcher matcher = VAR_PATTERN.matcher(result);
        while (matcher.find()) {
            String key = matcher.group(1);
            String value = ConfigurationManager.getConfigInstance().getString(key);
            if (value != null) {
                result = result.replaceAll("\\$\\{" + key + "\\}", value);
                matcher = VAR_PATTERN.matcher(result);
            }
        }        
        return result.trim();        
    }
Resolve the vip address by replacing macros with actual values in configuration. 
If there is no macro, the passed in string will be returned. If a macro is found but
there is no property defined in configuration, the same macro is returned as part of the
result.
ribbon-archaius/src/main/java/com/netflix/client/SimpleVipAddressResolver.java