static {
}
public void renderToWriter(Writer writer) throws HttpException {
try {
Template t = new Template(new File(template));
t.render(new ContextStack(context), writer);
writer.flush();
} catch (IOException e) {
log.error(e,e);
throw new HttpException(e);
}