/** * Get a localized string for a parameterized message. * * @param id the id of the message. * @param parameters map that contains key/value pairs used to resolve the * tokens in the specified message. * @return resolved, token-free message */ public static String getString(String id, Map<String, Object> parameters) { return ProblemFormatter.substitute(getString(id), parameters); }
/** * Get a localized string for a parameterized message. * * @param id the id of the message. * @param parameters map that contains key/value pairs used to resolve the * tokens in the specified message. * @return resolved, token-free message */ public static String getString(String id, Map<String, Object> parameters) { return ProblemFormatter.substitute(getString(id), parameters); }
return substitute(problemMessage, map);
return substitute(problemMessage, map);