public function getTemplateDefinition($webAssetTemplateName = false)
    {
        $ret = clone $this->templateDefinition;

        if (false !== $webAssetTemplateName) {
            $customPath = str_replace($ret->getName(), $webAssetTemplateName, $ret->getPath());
            $ret->setName($webAssetTemplateName);
            $ret->setPath($customPath);
        }

        return $ret;
    }