protected function RenderArea($name)
    {
        $area = $this->areas[$name];
        if (!$area)
        {
            throw new \InvalidArgumentException("Invalid area name $name");
        }
        $layoutAreaRenderer = new LayoutAreaRenderer($area);
        $result = $layoutAreaRenderer->Render();
       
        $pageAreaRenderer = new PageAreaRenderer($this->page, $area);
        $result .= $pageAreaRenderer->Render();
        return $result;
    }