fileName = params.var(name);
// To make orderparams available for substitution in orderparam value
while (fileName.matches("^.*%[^%]+%.*$")) {
String p = fileName.replaceFirst("^.*%([^%]+)%.*$", "$1");
String s = params.var(p);
s = s.replace('\\','/');
fileName = fileName.replaceAll("%"+p+"%", s);
getLogger().debug("processing job parameter ["+name+"]: substitute %"+p+"% with "+s);
}
}