question: public String replace ( final String source ) { if ( source == null ) { return null ; } final StrBuilder buf = new StrBuilder ( source ) ; if ( substitute ( buf , 0 , source . length ( ) ) == false ) { return source ; } return buf . toString ( ) ; }
target:  Replaces all the occurrences of variables with their matching values from the resolver using the given source string as a template.