protected function loadTemplate($path = null, $overwrite = false)
{
$overwrite = (bool) $overwrite;
// no template given, so we should build the path
if ($path === null) {
$path = $this->getModule() . '/Layout/Templates/' . $this->getAction() . '.html.twig';
} else {
// redefine
$path = (string) $path;
}
// set properties
$this->setOverwrite($overwrite);
$this->setTemplatePath($path);
}