docs: def state(self):
          """Get the Document's state"""
          state = self._resource.get('state', self.default_state)
  
          if state in State:
              return state
          else:
              return getattr(State, state)