code: def _resource(self, resource_id):
          
          resource = self.__model__.query.get(resource_id)
          if not resource:
              raise NotFoundException()
          return resource
docs: Return the ``sandman2.model.Model`` instance with the given
          *resource_id*.
  
          :rtype: :class:`sandman2.model.Model`