question: 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 ; }
target:  Replaces the variables present in the text and returns the result.<br>