code: public static String replacePlaceHoldersInTemplate(final String template, final Map<String, String> replacementMap) {
  
  		List<String> toReplace = new ArrayList<>();
  		List<String> replaceBy = new ArrayList<>();
  
  		for (Entry<String, String> property : replacementMap.entrySet()) {
  
  			toReplace.add(property.getKey());
  			replaceBy.add(property.getValue());
  
  		}
  
  		return StringUtils.replaceEachRepeatedly(template, toReplace.toArray(new String[toReplace.size()]), replaceBy.toArray(new String[replaceBy.size()]));
  
  	}
docs: Parse the template and replace any of the keys in the replacement map by
  the given values
  
  @param template
  @param replacementMap
  @return template string with included replacements