* @see org.apache.wicket.validation.IErrorMessageSource#substitute(java.lang.String,
* java.util.Map)
*/
public String substitute(String string, Map vars) throws IllegalStateException
{
return new MapVariableInterpolator(string, addDefaultVars(vars), Application.get()
.getResourceSettings()
.getThrowExceptionOnMissingResource()).toString();
}