public function generate($where, string $name = null)
    {
        $model = (static::MODEL_CLASS)::getInstance($where);
        if ($model === null) {
            return false;
        }

        $view = static::getView($model);

        $this->views[] = [
            'file' => $view,
            'name' => BankInterchange\Utils::addExtension(
                $name ?? $view->filename(),
                static::EXTENSION
            ),
        ];

        return true;
    }