code: public static String setParameters(String value, final Object[] params) {
  		if (params != null) {
  			for (int i = 0; i < params.length; i++) {
  				value = value.replaceAll("\\{" + i + "\\}", params[i].toString());
  			}
  		}
  		return value;
  	}
docs: replace params in string with the using index , for example "Hello {1} {2}"
  with Jalal , Kiswani as aparamters will generate Hello Jalal Kiswani .
  
  @param value  the value
  @param params the params
  @return the string