SONARJAVA-250 Checked exception should not be thrown