if ("page".equals(scope)) {
try {
TemplateModel model = env.getObjectWrapper().wrap(obj);
env.setVariable(name, model);
} catch (TemplateModelException e) {
throw new FreeMarkerTilesException(
"Error when wrapping an object", e);
}
} else if ("request".equals(scope)) {
getRequestHashModel(env).getRequest().setAttribute(name, obj);
} else if ("session".equals(scope)) {