def _handle_create_cfn_template_request(self, app_id, semver, key, logical_id):
create_cfn_template = (lambda app_id, semver: self._sar_client.create_cloud_formation_template(<EOL>ApplicationId=self._sanitize_sar_str_param(app_id),<EOL>SemanticVersion=self._sanitize_sar_str_param(semver)<EOL>))<EOL>response = self._sar_service_call(create_cfn_template, logical_id, app_id, semver)<EOL>self._applications[key] = response[self.TEMPLATE_URL_KEY]<EOL>if response['<STR_LIT>'] != "<STR_LIT>":<EOL><INDENT>self._in_progress_templates.append((response[self.APPLICATION_ID_KEY], response['<STR_LIT>']))<EOL><DEDENT>
Method that handles the create_cloud_formation_template API call to the serverless application repo

:param string app_id: ApplicationId
:param string semver: SemanticVersion
:param string key: The dictionary key consisting of (ApplicationId, SemanticVersion)
:param string logical_id: the logical_id of this application resource