'Determine if a restoration context is active for the current thread.
Returns the request_id it\'s active for if so, otherwise False'

def in_restoration(self):

    return getattr(self.restoration_context_id, 'request_id', False)
