protected function getCategory(Document $document) 
	{
		$obj = new CategoriesToRender();
		$categories = $obj($document, true, true);
		$firstCategory = reset($categories);
		
		return $firstCategory;
	}