protected function generateSitesTemplate($packageKey, $siteName)
{
$templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Template/SiteTemplate.html';
$contextVariables = array();
$contextVariables['siteName'] = $siteName;
$contextVariables['neosViewHelper'] = '{namespace neos=Neos\\Neos\\ViewHelpers}';
$contextVariables['typoScriptViewHelper'] = '{namespace ts=Neos\\Fusion\\ViewHelpers}';
$packageKeyDomainPart = substr(strrchr($packageKey, '.'), 1) ?: $packageKey;
$contextVariables['siteNodeName'] = lcfirst($packageKeyDomainPart);
$fileContent = $this->renderTemplate($templatePathAndFilename, $contextVariables);
$sitesTypoScriptPathAndFilename = $this->packageManager->getPackage($packageKey)->getResourcesPath() . 'Private/Templates/Page/Default.html';
$this->generateFile($sitesTypoScriptPathAndFilename, $fileContent);
}