Fixed some PMD violations in the controller package.