XWIKI-10627: Failing to compute email subject from a template
+ minor reformating and javadoc improvements