[refacto] use java.util.Random rather than Math.random()
[cleanup] MessageHelper empty catch
[build] fail on pmd or findbugs errors