Nested hashmap scan