def get_association(assoc_handle, dumb, checkExpiration=true)
if !assoc_handle
raise ArgumentError.new("assoc_handle must not be None")
end
if dumb
key = @@_dumb_key
else
key = @@_normal_key
end
assoc = @store.get_association(key, assoc_handle)
if assoc and assoc.expires_in <= 0
Util.log(sprintf("requested %sdumb key %s is expired (by %s seconds)",
(!dumb) ? 'not-' : '',
assoc_handle, assoc.expires_in))
if checkExpiration
@store.remove_association(key, assoc_handle)
assoc = nil
end
end
return assoc
end