}
protected void serialize(Serializable obj, HttpServletResponse response, String page)
throws IOException {
Template template = engine.getTemplate(page);
Context context = engine.createContext(response.getWriter());
try {
context.pushLocalContext(new ModelMap(obj));
context.setLocale(getLocale());
template.render(context);
} finally {
context.clear();
}
}