public function getDecorator()
    {
        if (! $this->decorator) {
            $this->decorator = new DefaultDecorator();
        }

        // set options used to render scripts
        $this->decorator->no_conflict_mode    = $this->isNoConflict();
        $this->decorator->base_library        = $this->getLibSrc();
        $this->decorator->no_conflict_handler = $this->getNoConflictHandler();

        return $this->decorator;
    }