protected function renderList($class, array $children)
    {
        $ul = new NodeElement();
        $ul->openTag('ul')
           ->addAttribute('class', $class)
           ->finalize(true)
           ->appendChildren($children)
           ->closeTag();

        return $ul->render();
    }