code: def _get_template_name(self):
          '''Find template name.
  
          :returns: string of template name
          :raises: NonextantTemplateNameException
          '''
  
          start_pattern = r"sys application template\s+" \
                          r"(\/[\w\.\-]+\/)?" \
                          r"(?P<name>[\w\.\-]+)\s*\{"
  
          template_start = re.search(start_pattern, self.template_str)
          if template_start:
              return template_start.group('name')
  
          raise NonextantTemplateNameException('Template name not found.'f _get_template_name(self):
          '''Find template name.
  
          :returns: string of template name
          :raises: NonextantTemplateNameException
          '''
  
          start_pattern = r"sys application template\s+" \
                          r"(\/[\w\.\-]+\/)?" \
                          r"(?P<name>[\w\.\-]+)\s*\{"
  
          template_start = re.search(start_pattern, self.template_str)
          if template_start:
              return template_start.group('name')
  
          raise NonextantTemplateNameException('Template name not found.')
docs: Find template name.
  
          :returns: string of template name
          :raises: NonextantTemplateNameException