Removed unused local variables (PMD report).