/**
  * Prepend a script tag with property metadata to the content
  *
  * @param \TYPO3\Fluid\Core\ViewHelper\TagBuilder $tagBuilder
  * @param string $propertyName
  * @param string $propertyValue
  * @param string $dataType
  * @return void
  */
 protected function addScriptTag(\TYPO3\Fluid\Core\ViewHelper\TagBuilder $tagBuilder, $propertyName, $propertyValue, $dataType = 'string')
 {
     $dataType = $this->getDataTypeCurie($dataType);
     if ($dataType === 'xsd:string') {
         $dataTypeAttribute = '';
     } else {
         $dataTypeAttribute = sprintf(' datatype="%s"', $dataType);
     }
     $tag = sprintf('<script type="text/x-typo3" property="typo3:%s"%s>%s</script>', $propertyName, $dataTypeAttribute, $propertyValue);
     $tagBuilder->setContent($tag . $tagBuilder->getContent());
 }