refactor due to automatic code analysis (FindBugs, Checkstyle, PMD).