else if (model instanceof TemplateScalarModel) {
interpretString = ((TemplateScalarModel) model).getAsString();
}
if (id == null) id = "anonymous_interpreted";
if (interpretString == null) {
throw new InvalidReferenceException("No string to interpret", env);
}
Template parentTemplate = env.getTemplate();
try {
Template template = new Template(parentTemplate.getName() + "$" + id, new StringReader(interpretString), parentTemplate.getConfiguration());
template.setLocale(env.getLocale());