protected function validateUUID($uuid)
    {
        /* @var $validator UniqueValidator */
        /* @var $model BaseActiveRecord */
        $validator = Yii::createObject(array_merge([
            'class' => UniqueValidator::class,
        ], $this->uniqueValidator));

        $model = clone $this->owner;
        $model->clearErrors();
        $model->{$this->attribute} = $uuid;

        $validator->validateAttribute($model, $this->attribute);
        return !$model->hasErrors();
    }