code: private String replaceParameters(String text) {
      	if (text == null) {
      		return null;
      	}
          for  (String param : parameterValues.keySet()) {
               text = StringUtil.replace(text, "\\$P\\{" + param + "\\}", StringUtil.getValueAsString(parameterValues.get(param), null,I18nUtil.getLanguageByName(chart, language)));
          }
          return text;
      }
docs: replace $P{...} parameters (used in title and x,y legends