if (user == null) {
log.error("Invalid user.");
return USER;
}
VulnerabilityComment comment = new VulnerabilityComment();
comment.setTags(vulnerabilityComment.getTags());
comment.setComment(trimmedComment);
comment.setVulnerability(vuln);
comment.setTime(new Date());
comment.setUser(user);
vulnerabilityCommentDao.saveOrUpdate(comment);
return VALID;
}