protected static String replaceProperties(String text, Properties properties) {
        Set<Map.Entry<Object, Object>> entries = properties.entrySet();
        for (Map.Entry<Object, Object> entry : entries) {
            Object key = entry.getKey();
            Object value = entry.getValue();
            if (key != null && value != null) {
                String pattern = "${" + key + "}";
                text = StringUtils.replace(text, pattern, value.toString());
            }
        }
        return text;
    }
protected static String replaceProperties(String text, Properties properties) {
        Set<Map.Entry<Object, Object>> entries = properties.entrySet();
        for (Map.Entry<Object, Object> entry : entries) {
            Object key = entry.getKey();
            Object value = entry.getValue();
            if (key != null && value != null) {
                String pattern = "${" + key + "}";
                text = StringUtils.replace(text, pattern, value.toString());
            }
        }
        return text;
    }
protected static String replaceProperties ( String text , Properties properties ) { Set < Map . Entry < Object , Object > > entries = properties . entrySet ( ) ; for ( Map . Entry < Object , Object > entry : entries ) { Object key = entry . getKey ( ) ; Object value = entry . getValue ( ) ; if ( key != null && value != null ) { String pattern = "${" + key + "}" ; text = StringUtils . replace ( text , pattern , value . toString ( ) ) ; } } return text ; }
Replaces all text of the form <code>${foo}</code> with the value in the properties object
Replaces all text of the form <code > $ { foo } < / code > with the value in the properties object