public function findOne(string $name, string $resourceId): Model
    {
        return $this->getRepository($name)
            ->query()
            ->setResourceId($resourceId)
            ->findOne();
    }