code: public static String resolve(String value, Map<String, String> properties) {
  		do {
  			int i = value.indexOf("${");
  			if (i < 0) return value;
  			int j = value.indexOf('}', i + 2);
  			if (j < 0) return value;
  			String name = value.substring(i + 2, j);
  			String val = properties.get(name);
  			if (val == null) val = "";
  			value = value.substring(0, i) + val + value.substring(j + 1);
  		} while (true);		
  	}
docs: Resolve the given value with the given properties.