OR-558 refactor the addNewComment method

This makes the method message-type agnostic
Merge pull request #427 in OR/rse from ~MBAILLY/rse:OR-558-refactoring to master

* commit 'caf9fd2f15c764a01bc47c387726aca56ff979c7':
  OR-558 refactor the addNewComment method