XWIKI-10405: Implement a new Platform Mail Sender API
* Fixed checkstyle errors + set jacoco threshold