protected function __sandbox()
    {
        set_error_handler(array($this, 'handleError'), E_WARNING | E_NOTICE);
        $this->getStack()->push(clone $this);

        //Extract the data in local scope
           extract($this->_data, EXTR_SKIP);
           
           // Capturing output into a buffer
        ob_start();
        include 'tmpl://'.$this->getStack()->getIdentifier();
        $this->_contents = ob_get_clean();

        $this->getStack()->pop();
        restore_error_handler();
        
        return $this;
    }