HttpServletResponse response) {
logger.debug("add tags " + tagText + " to widget " + widgetId);
if (tagText != null && !tagText.trim().isEmpty()) {
WidgetTag existed = widgetService.getWidgetTagByWidgetIdAndKeyword(widgetId, tagText);
if (existed == null) {
WidgetTag widgetTag = new WidgetTagImpl(userService.getAuthenticatedUser(), new Date(), getTag(tagText));
widgetService.createWidgetTag(widgetId, widgetTag);
logger.debug("widget tag is saved.");
}