public function execute()
{
$this->loadConfig();
// build action-class-name
$actionClass = 'Backend\\Modules\\' . $this->getModule() . '\\Ajax\\' . $this->getAction();
if ($this->getModule() == 'Core') {
$actionClass = 'Backend\\Core\\Ajax\\' . $this->getAction();
}
if (!class_exists($actionClass)) {
throw new Exception('The class ' . $actionClass . ' could not be found.');
}
// create action-object
$object = new $actionClass($this->getKernel(), $this->getAction(), $this->getModule());
$object->setAction($this->getAction(), $this->getModule());
$object->execute();
return $object->getContent();
}