protected String replaceProperties(String string)
{
final Map properties = this.getProject().getProperties();
if (properties != null && !properties.isEmpty())
{
for (final Iterator iterator = properties.keySet().iterator(); iterator.hasNext();)
{
final String name = (String)iterator.next();
final String property = "${" + name + "}";
final String value = (String)properties.get(name);
string = StringUtils.replace(string, property, value);