public function actionAction($id, $name)
{
$generator = $this->loadGenerator($id);
$method = 'action' . $name;
if (method_exists($generator, $method)) {
return $generator->{$method}();
} else {
throw new NotFoundHttpException("Unknown generator action: {$name}");
}
}