iterate over java.Map correctly, with i._1 syntax for unpacking the map