code: public void store(String gavc,
                        String action,
                        String commentText,
                        DbCredential credential,
                        String entityType) {
          DbComment comment = new DbComment();
          comment.setEntityId(gavc);
          comment.setEntityType(entityType);
          comment.setDbCommentedBy(credential.getUser());
          comment.setAction(action);
  
          if(!commentText.isEmpty()) {
              comment.setDbCommentText(commentText);
          }
  
          comment.setDbCreatedDateTime(new Date());
  
          repositoryHandler.store(comment);
      }
docs: Store a comment based on comment text, gavc and user information
  
  @param gavc - entity id
  @param commentText - comment text
  @param credential - user credentials
  @param entityType - type of the entity