public static function findOrDefault($param, array $attributes) {
        $model = self::findOrNew($param);
        if ($model->isNewRecord) {
            $model->set($attributes);
        }
        return $model;
    }