    # File lib/rbot/registry.rb, line 180
        def restore(val)
          begin
            Marshal.restore(val)
          rescue Exception => e
            error _("failed to restore marshal data for #{val.inspect}, attempting recovery or fallback to default")
            debug e
            if defined? @recovery and @recovery
              begin
                return @recovery.call(val)
              rescue Exception => ee
                error _("marshal recovery failed, trying default")
                debug ee
              end
            end
            return default
          end
        end