/**
* Ends the evaluation of a typoscript path by popping the context stack if needed and leaving the cache context.
*
* @param array $cacheContext
* @param boolean $needToPopContext
* @return void
*/
protected function finalizePathEvaluation($cacheContext, $needToPopContext = false)
{
if ($needToPopContext) {
$this->popContext();
}
$this->runtimeContentCache->leave($cacheContext);
}