restResponse.write(status, content, viewType);
throw new RenderFinish();
}
public void renderHtml(int status, String path, Map result) {
VelocityContext context = new VelocityContext();
copyObjectToMap(result, context);
StringWriter w = new StringWriter();
Velocity.mergeTemplate(path, "utf-8", context, w);
restResponse.write(status, w.toString(), ViewType.html);
}