Replaced the static method by a specific hook to allow to add comments on any page and for any record.