return template.replace(/\%\{(\w+)\}/g, function(match, key){ if(typeof(map[key]) != "undefined" && map[key] != null){ return map[key]; } dojo.raise("Substitution not found: " + key); }); 
return template.replace(/\%\{(\w+)\}/g, function(match, key){ if(typeof(map[key]) != "undefined" && map[key] != null){ return map[key]; } dojo.raise("Substitution not found: " + key); }); 
dojo.string.substituteParams = function(/*string*/template, /* object - optional or ... */hash){// summary://  Performs parameterized substitutions on a string. Throws an exception if any parameter is unmatched.//// description://  For example,//    dojo.string.substituteParams("File '%{0}' is not found in directory '%{1}'.","foo.html","/temp");//  returns//    "File 'foo.html' is not found in directory '/temp'."//// template: the original string template with %{values} to be replaced// hash: name/value pairs (type object) to provide substitutions.  Alternatively, substitutions may be//  included as arguments 1..n to this function, corresponding to template parameters 0..n-1  var map = (typeof hash == 'object') ? hash : dojo.lang.toArray(arguments, 1);  return template.replace(/\%\{(\w+)\}/g, function(match, key){    if(typeof(map[key]) != "undefined" && map[key] != null){      return map[key];    }    dojo.raise("Substitution not found: " + key);  }); // string};
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/65ae7e8768a77997b7894e274bc242069a1cb027/struts_dojo.js.uncompressed.js/clean/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js