**[Min Ho Pak](https://jira.spring.io/secure/ViewProfile.jspa?name=luckybomb)** opened **[SPR-12356](https://jira.spring.io/browse/SPR-12356?redirect=false)** and commented BeanFactoryAnnotationUtils,qualifiedBeanOfType method use KeySet Iterator. It is more efficient to use an iterator on the entrySet of the map, to avoid the Map.get(key) lookup. pull request: https://github.com/spring-projects/spring-framework/pull/667 --- **Affects:** 4.1.1 **Issue Links:** - #17037 MessageHeaderAccessor copyHeaders... tuning - #16968 org.springframework.ui.ModelMap.mergeAttributes(Map) makes inefficient use of keySet iterator **Referenced from:** pull request https://github.com/spring-projects/spring-framework/pull/667, and commits https://github.com/spring-projects/spring-framework/commit/2e5d752e15164b331ad48bcdcb61c174f880498c