RAT-127 applied https://issues.apache.org/jira/browse/RAT-127. Many thanks to Bernd Eckenfels for his contribution.