public function setFrame($path, $page)
    {
        $name = array_shift($path);
        if (isset($this->names[$name])) {
            $index = $this->names[$name];
        } else {
            $index = $name - 1;
        }
        if (count($path) === 0) {
            $this->frames[$index] = $page;

            return;
        }
        $this->frames[$index]->setFrame($path, $page);
    }