protected function executeActionListIfExist($name, $title = null)
{
$actions = Context::getInstance()->getList($name);
if (count($actions) > 0) {
$this->getOutput()->writeSmallTitle($title ?: ucfirst($name));
$this->getOutput()->indent();
foreach ($actions as $num => $action) {
$this->getOutput()->write(++$num . ') ' . $action->getTitle() . ' : ');
$this->getOutput()->indent();
$action->execute();
$this->getOutput()->writeEmptyLine();
$this->getOutput()->unIndent();
}
$this->getOutput()->unIndent();
}
}