}
Comment commentEntity = null;
if ((comment != null) && (comment.length() > 0)) {
commentEntity = new Comment();
commentEntity.generateId();
commentEntity.setComment(comment);
Principal p = request.getUserPrincipal();
if (p != null) {
List<? extends Object> params = Collections.<String>singletonList(p.getName());
Map paramMap = Collections.singletonMap("name", params);