public function setLayout($layout, array $data = array())
    {
        if (is_null($layout)) {
            $this->layout = null;

            return;
        }

        $this->layout = $this->make($this->resolve($layout), $data);
    }