Fixed PMD warning (line count > 20)