protected function renderHeaderContent(Descriptor $descriptor) {
		$tagsLocator = $this->getTagsLocator();
		
		$title = '';
		
		if ($descriptor->hasLabel()) {
			$label  = htmlspecialchars($descriptor->getLabel());
			$title .= $tagsLocator->label->render($label);
		}
		
		$title .= htmlspecialchars($descriptor->getTitle());
		
		if ($descriptor->hasBadge()) {
			$badge  = htmlspecialchars($descriptor->getBadge());
			$title .= $tagsLocator->badge->render($badge);
		}
		
		return $tagsLocator->header->render($title);
	}