 import mx.logging.ILogger;
 import mx.managers.PopUpManager;
 import mx.resources.ResourceManager;
+import mx.rpc.Fault;
+import mx.rpc.Responder;
 import mx.utils.ObjectUtil;
 
 public final class SwitchingMapsController

            }
        }

        mapConfigXML.appendChild(baseLayers);

        if (opLayers.hasComplexContent())
        {
            mapConfigXML.appendChild(opLayers);
        }
        if (unsupportedLayers.length)
        {
            noticePopUp.isWaiting = false;
            showLayerNotAddedPopUp(unsupportedLayers);
        }
        else
        {
            saveNewMapConfig();
        }
    }


import com.esri.ags.layers.WebTiledLayer;
import com.esri.ags.layers.supportClasses.TileInfo;
import com.esri.ags.portal.WebMapUtil;
import com.esri.ags.portal.supportClasses.PortalItem;
import com.esri.builder.eventbus.AppEvent;
import com.esri.builder.model.ConfigLayer;
import com.esri.builder.model.ConfigMap;
import com.esri.builder.model.Model;
import com.esri.builder.model.PortalLayer;
import com.esri.builder.model.PortalModel;
import com.esri.builder.supportClasses.IconFetchEvent;
import com.esri.builder.supportClasses.LogUtil;
import com.esri.builder.supportClasses.PortalLayerIconFetcher;
import com.esri.builder.views.popups.NoticePopUp;

import flash.display.DisplayObject;
