}
if (script==null) {
String uri = resourceProperties.getProperty("script");
if (uri!=null) {
Template t = new Template(uri);
String formatted = t.format(request.getAttributes());
try {
script = new URL(formatted);
} catch (MalformedURLException ex) {
getLogger().log(Level.SEVERE,"Cannot convert script to URL: "+uri,ex);
return null;