code: public int addComment(Reference reference, CommentCreate comment,
  			boolean silent, boolean hook) {
  		return getResourceFactory()
  				.getApiResource(
  						"/comment/" + reference.getType() + "/"
  								+ reference.getId())
  				.queryParam("silent", silent ? "1" : "0")
  				.queryParam("hook", hook ? "1" : "0")
  				.entity(comment, MediaType.APPLICATION_JSON_TYPE)
  				.post(CommentCreateResponse.class).getId();
  	}
docs: Adds a new comment to the object of the given type and id, f.ex. item 1.
  
  @param reference
  The reference to the object the comment should be added to
  @param comment
  The comment that should be added
  @param silent
  True if the update should be silent, false otherwise