if (templates == null) {
debug(hr, "token: " + token + " is not defined");
return;
}
TemplateRunner runner = (TemplateRunner) runners.get(token);
if (runner == null) {
try {
runner = new TemplateRunner(hr.server, prefix, templates);
runners.put(token, runner);
hr.request.log(Server.LOG_DIAGNOSTIC, hr.prefix,
"creating runner for: " + templates);
} catch (Exception e) {
debug(hr, "Can't instantiate " + e.getMessage());
return;
}
}
String result = runner.process(hr.request, data, hr.sessionId);
if (!ignore) {
hr.append(result);
}
}