Strange that a TreeMap was used if key order does not matter. Nice catch.