public function setText($text, $finalize = true)
    {
        if ($finalize && !$this->isFinalized()) {
            $this->finalize();
        }

        $this->append($text);
        return $this;
    }