def _register(self, name):
        """
        @Api private
        Add new :py:class:`TemplateHook` into the registry

        :param str name: Hook name
        :return: Instance of :py:class:`TemplateHook`
        :rtype: :py:class:`TemplateHook`
        """
        templatehook = TemplateHook()
        self._registry[name] = templatehook
        return templatehook
@Api private
        Add new :py:class:`TemplateHook` into the registry

        :param str name: Hook name
        :return: Instance of :py:class:`TemplateHook`
        :rtype: :py:class:`TemplateHook`