fixed serialization error when persisting TGT since keySet returns non-serializable view - create a copy of the returned set view.