def METHOD_NAME(self):
    if self.container_rid not in self.svc.resources_by_id:
        raise ex.Error("rid %s not found" % self.container_rid)
    return self.svc.resources_by_id[self.container_rid]