CAMEL-3652: Fix the Sonar Critical issue: Performance - Inefficient use of keySet iterator instead of entrySet iterator