include the key in getGloballyUniqueId, and make key final.