private static String replace(String text,Map<String,String> vars,String prefix){
  for (  Entry<String,String> var : vars.entrySet())   text=text.replaceAll(Pattern.quote(prefix + var.getKey()),Matcher.quoteReplacement(var.getValue()));
  return text;
}

private static String replace ( String text , Map < String , String > vars , String prefix ) { for ( Entry < String , String > var : vars . entrySet ( ) ) text = text . replaceAll ( Pattern . quote ( prefix + var . getKey ( ) ) , Matcher . quoteReplacement ( var . getValue ( ) ) ) ; return text ; }
replaces the variables present in the text and returns the result . < br >
