protected function generateSitesTypoScript($packageKey, $siteName)
{
$templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/TypoScript/Root.fusion';
$contextVariables = array();
$contextVariables['packageKey'] = $packageKey;
$contextVariables['siteName'] = $siteName;
$packageKeyDomainPart = substr(strrchr($packageKey, '.'), 1) ?: $packageKey;
$contextVariables['siteNodeName'] = $packageKeyDomainPart;
$fileContent = $this->renderTemplate($templatePathAndFilename, $contextVariables);
$sitesTypoScriptPathAndFilename = $this->packageManager->getPackage($packageKey)->getResourcesPath() . 'Private/TypoScript/Root.fusion';
$this->generateFile($sitesTypoScriptPathAndFilename, $fileContent);
}