             var newChannels:XMLList = newServices.channels;
             if (newChannels.length() > 0)
             {
-                   var oldChannels:XML = xml.channels[0];
+                var oldChannels:XML = xml.channels[0];
                 if (oldChannels == null || oldChannels.length() == 0)
                 {
                     xml.appendChild(newChannels);


        var channelConfig:XML = channels[0];
        var className:String = channelConfig.attribute(CLASS_ATTR).toString();
        var uri:String = channelConfig.endpoint[0].attribute(URI_ATTR).toString();
        var channel:Channel = null;
        try
        {


                for (var i:int = 0; i < propertyValueList.length; i++)
                {
                    var propertyXML1:XML = <{propertyKey}></{propertyKey}>
                    configXML.appendChild(propertyXML1);
                    convertToXML(propertyValueList[i] as ConfigMap, propertyXML1);
                }
            }
            else // assuming that it is ConfigMap
            {
                var propertyXML2:XML = <{propertyKey}></{propertyKey}>
                configXML.appendChild(propertyXML2);
                convertToXML(propertyValue as ConfigMap, propertyXML2);
            }
