private void ConnectToInstance(string instanceAddr, string instancePort, List<WebServiceEntry> webServiceInfoList)
        {
            var clientConfig = new ClientConfig();
            clientConfig.addAddress(instanceAddr + ":" + instancePort);
            clientConfig.GroupConfig = new GroupConfig("dev", "dev-pass");
            clientConfig.TypeConverter = new MyTypeConverter();

            // connect to the hazelcast instance
            while (client == null)
            {
                try
                {
                    client = HazelcastClient.newHazelcastClient(clientConfig);
                }
                catch (Exception)
                {
                    traceFile.Append("Failed to connect to " + instanceAddr + ":" + instancePort);
                    Thread.Sleep(5000);
                }
            }

            // tell the instances that we're active
            var mapClient = client.getMap<string, string>("client");
            mapClient.put(GetUniqueId(), "active");

            var mapWebServiceInfo = client.getMap<String, WebServiceEntry>("webService");
            foreach (var nextWebServiceInfo in webServiceInfoList)
            {
                mapWebServiceInfo.put(nextWebServiceInfo.Id, nextWebServiceInfo);
            }
        }