https://devhubby.com/thread/how-to-get-the-last-key-from-a-map-in-groovy