protected function getTagPosition($name, $category)
    {
        $pattern = 'inline' === $category
            ? '/*'.'%s'.'*/'
            : '<!--%s-->';

        return sprintf($pattern, '#tag-position:'.$name.':'.spl_object_hash($this).'#');
    }