public static String applyProperties(String s, TreeMap properties)
public static String applyProperties(String s, Map properties)
	public static String applyProperties(String s, TreeMap properties)	{		java.util.Iterator e = properties.keySet().iterator();//		Enumeration e = properties.keys();//		while (s.indexOf('$')>=0 && e.hasMoreElements())		while (s.indexOf('$')>=0 && e.hasNext())		{			String key = e.next().toString();//			String key = e.nextElement().toString();			String val = properties.get(key).toString();			s = s.replaceAll("\\$\\("+key+"\\)", val);			s = s.replaceAll("\\$\\{"+key+"\\}", val);		}		return s;	}