public function getTemplateObject($_type, $_ref = null)
    {
        $stack_name = !is_null($_ref) ? $_ref : $this->getTemplateObjectClassName($_type);

        if (!$this->registry->isEntry($stack_name, 'template_objects')) {
            $this->createNewTemplateObject($_type, $_ref);
        }

        return $this->registry->getEntry($stack_name, 'template_objects');
    }