code is clean of PMD severity 1 and 2 warnings.