private String evaluatePropertyTemplates(String rawValue) {
    if (rawValue != null) {
      try {
        Writer templateWriter = new StringWriter();
        Velocity.evaluate(velocityContext, templateWriter, rawValue, rawValue);
        return templateWriter.toString();
      } catch (ParseErrorException e) {
        LOG.warn(String.format("Error during parsing '%s' parameter. Leaving original value.", rawValue));
      }
    }
    return rawValue;
  }
Evaluate any templates in the given property value.

@param rawValue original string with parameters in formal or shorthand notation

@return the evaluated property value
ambari-server/src/main/java/org/apache/ambari/server/view/ViewContextImpl.java