[JENKINS-20280] Make it easy to change the implementation. Especially Map.Entry is not so convenient to handle.