KER-298: Fix the violation found by Sonar