HttpServletResponse response, ModelMap model) {
CmsSite site = CmsUtils.getSite(request);
if (id == null) {
return FrontUtils.pageNotFound(request, response, model);
}
CmsTopic topic = cmsTopicMng.findById(id);
if (topic == null) {
return FrontUtils.pageNotFound(request, response, model);
}
model.addAttribute("topic", topic);
String tpl = topic.getTplContent();
if (StringUtils.isBlank(tpl)) {
tpl = FrontUtils.getTplPath(request, site.getSolutionPath(),
TPLDIR_TOPIC, TOPIC_DEFAULT);
}
FrontUtils.frontData(request, model, site);