Removed more unused local variables (PMD report).