What is the purpose of the `end()` and `reset()` here?...  I could understand using `end()` if you were going to use `key()` to get the key of the last added MIME-type, but it seems that we search for it below...