OPAL-1583: Fixed PMD warning, overly long method