public String AddInstance(String instanceUrl)
        {
            Logger.GetLogger().Info(String.Format("Starting to add new instance through {0}.", instanceUrl));
            this.LoadInstancesFromBankFile();
            //Download instance content
            var rowInstanceContent = DownloadUtils.GetFileContent(instanceUrl);

            var instance = JsonConverter.Parse<InstanceEntity>(rowInstanceContent);

            this.CriticalInstanceFieldCheck(instance);

            this.PerinitializeInstance(instance);

            var instanceInfo = new InstanceInfoEntity
            {
                Name = instance.InstanceName,
                InstanceState = InstanceState.PerInitialized,
                FilePath = Path.Combine(this.GetInstanceRootFolder(instance.InstanceName).FullName,
                    "Instance.json"),
                UpdateUrl = instance.UpdatePath,
                UpdateDate = DateTime.Now.ToString(CultureInfo.InvariantCulture)
            };

            File.WriteAllText(instanceInfo.FilePath, JsonConverter.ConvertToJson(instance));
            this.InstanceBank.InstancesInfoList.Add(instanceInfo);
            this.SaveInstancesBankToFile();
            return String.Format("Added instance:{0}", instance.InstanceName);
        }
        public string AddInstance(string instanceUrl)
        {
            TerminologyLogger.GetLogger().Info($"Starting to add new instance through {instanceUrl}.");
            this.LoadInstancesFromBankFile();
            //Download instance content
            var rowInstanceContent = DownloadUtils.GetWebContent(instanceUrl);

            var instance = JsonConverter.Parse<InstanceEntity>(rowInstanceContent);

            this.CriticalInstanceFieldCheck(instance);

            this.PerinitializeInstance(instance);

            var instanceInfo = new InstanceInfoEntity
            {
                Name = instance.InstanceName,
                InstanceState = InstanceState.PerInitialized,
                UpdateUrl = instance.UpdatePath,
                UpdateDate = DateTime.Now.ToString(CultureInfo.InvariantCulture)
            };

            File.WriteAllText(this.GetInstnaceFile(instanceInfo.Name), JsonConverter.ConvertToJson(instance));
            this.InstanceBank.InstancesInfoList.Add(instanceInfo);
            this.SaveInstancesBankToFile();
            return $"Added instance:{instance.InstanceName}";
        }