// Grab the layout template set in the TemplatePage.
String templateName = data.getTemplateInfo().getLayoutTemplate();
// Finally, generate the layout template and output to the response
JspService jsp = (JspService)TurbineServices.getInstance()
.getService(JspService.SERVICE_NAME);
jsp.handleRequest(data, "/layouts" + templateName, true);
}
}