private ConfigurationFile InitConfigDemoFromTemp(string groupName, ITempSampleConfigFileCreator sampleCreator)
        {
            WriteStartResult(groupName + " DEMO");
            ConfigurationFile configFile = null;

            try
            {
                // Create temp config file
                configFile = ConfigurationFile.CreateTempConfigurationFile(GetCurrentSampleRunnerOptions(), sampleCreator);
                string newConfigFilePath = configFile.ConfigFilePath;
                // WriteResult("Created new config file! Path={0}\r\n", newConfigFilePath);
                OnTempConfigFileCreated(newConfigFilePath);
                configFile = ConfigurationFile.GetTempConfigurationFile(newConfigFilePath);

                ShowXml(configFile.ConfigFileText);

                OnConfigFileLoaded(configFile.ConfigFilePath);
            }
            catch (Exception ex)
            {
                WriteErrorResult(ex);
            }
            return(configFile);
        }