code: def find(model, rid):
      
  
      validate_rid(model, rid)
  
      rid_field = model.rid_field
      model = goldman.sess.store.find(model.RTYPE, rid_field, rid)
  
      if not model:
          abort(exceptions.DocumentNotFound)
  
      return model
docs: Find a model from the store by resource id