@RequestMapping("forum-topic-save")
public String save(@ModelAttribute ForumTopic forumTopic,
@RequestParam Map<String, Object> parameterMap,
RedirectAttributes redirectAttributes) {
ForumTopic dest = null;
Long id = forumTopic.getId();
if (id != null) {
dest = forumTopicManager.get(id);
beanMapper.copy(forumTopic, dest);
} else {
dest = forumTopic;
String userId = SpringSecurityUtils.getCurrentUserId();
dest.setUserId(Long.parseLong(userId));
dest.setCreateTime(new Date());
}
forumTopicManager.save(dest);
messageHelper.addFlashMessage(redirectAttributes, "core.success.save",