public String getMessage ( String code , Map < String , String > substitutes ) { return getMessage ( code , substitutes , true , null ) ; }
Finds localized message template by code and current locale from config . If not found it takes message from message bundle and replaces all the occurrences of variables with their matching values from the substitute map .