connectionUtils/src/main/java/com/ge/research/semtk/utility/Utility.java
public static String expandProperties(Properties properties, String str) throws Exception {
		
        for (Object k : properties.keySet()) {
        	String key = ((String) k).trim();
        	String val = properties.getProperty((String) key);
        	str = str.replace("${" + key + "}", val);
        }
        str = Utility.expandEnv(str);
        return str;
	}
/**
	 * Expand properties into string, where string contains ${property}
	 * and then do ENVIRONMENT variable expansion
	 * @param properties
	 * @param str
	 * @return
	 * @throws Exception
	 */
Expand properties into string, where string contains ${property}
and then do ENVIRONMENT variable expansion
@param properties
@param str
@return
@throws Exception
Expand properties into string where string contains $ { property } and then do ENVIRONMENT variable expansion @param properties @param str @return @throws Exception
public static String expandProperties(Properties properties, String str) throws Exception {
        for (Object k : properties.keySet()) {
        	String key = ((String) k).trim();
        	String val = properties.getProperty((String) key);
        	str = str.replace("${" + key + "}", val);
        }
        str = Utility.expandEnv(str);
        return str;
	}
public static String expandProperties ( Properties properties , String str ) throws Exception { for ( Object k : properties . keySet ( ) ) { String key = ( ( String ) k ) . trim ( ) ; String val = properties . getProperty ( ( String ) key ) ; str = str . replace ( "${" + key + "}" , val ) ; } str = Utility . expandEnv ( str ) ; return str ; }
Expand properties into string, where string contains ${property}
 and then do ENVIRONMENT variable expansion
 @param properties
 @param str
 @return
 @throws Exception
Expand properties into string where string contains $ { property } and then do ENVIRONMENT variable expansion @param properties @param str @return @throws Exception