Removed some unused local variables (PMD reports).