'Replaces template name at runtime
To allow us to do the switch-a-roo with temporary templates and
checksum comparisons, we need to take the template provided to us
and change its name to a temporary value so that BIG-IP will create
a clone for us.
:return string'

def _replace_template_name(self, template):

    pattern = 'sys\\s+application\\s+template\\s+[^    ]+'
    replace = 'sys    application    template    {0}'.format(self._values['name'])
    return re.sub(pattern, replace, template)
