code: private String replaceParameters(String text) {
      	Map<String, Object> params  = bean.getParametersBean().getParamValues();
          for  (String param : params.keySet()) {
               text = StringUtil.replace(text, "\\$P\\{" + param + "\\}", StringUtil.getValueAsString(params.get(param), null));
          }
          return text;
      }
docs: replace $P{...} parameters (used in title and x,y legends