experiment.setWorkflowTemplateId(experimentResource.getWorkflowTemplateId()); experiment.setEnableEmailNotification(experimentResource.isEnableEmailNotifications()); experiment.setGatewayExecutionId(experimentResource.getGatewayExecutionId()); if (experiment.isEnableEmailNotification()){ List<NotificationEmailResource> notificationEmails = experimentResource.getNotificationEmails();