public function loopDependencies($list, &$exclude = array()) {
        if (!$list) {
            return null;
        }

        $output = '';

        foreach ($list as $dependent) {
            if (in_array($dependent['model'], $exclude)) {
                continue;
            }

            $exclude[] = $dependent['model'];

            $output .= sprintf('<li>%s (%s) %s</li>',
                $dependent['model'],
                $dependent['alias'],
                $this->loopDependencies($dependent['dependencies'], $exclude));
        }

        return $this->Html->tag('ul', $output);
    }