def _handle_get_cfn_template_response(self, response, application_id, template_id):
status = response['<STR_LIT>']<EOL>if status != "<STR_LIT>":<EOL><INDENT>if status == '<STR_LIT>':<EOL><INDENT>message = ("<STR_LIT>"<EOL>"<STR_LIT>".format(application_id, template_id, status))<EOL>raise InvalidResourceException(application_id, message)<EOL><DEDENT>self._in_progress_templates.append((application_id, template_id))<EOL><DEDENT>
Handles the response from the SAR service call

:param dict response: the response dictionary from the app repo
:param string application_id: the ApplicationId
:param string template_id: the unique TemplateId for this application