 import com.esri.ags.portal.supportClasses.PortalItem;
 import com.esri.ags.portal.supportClasses.PortalQueryParameters;
 import com.esri.ags.portal.supportClasses.PortalQueryResult;
+import com.esri.ags.tasks.JSONTask;
 import com.esri.viewer.AppEvent;
 import com.esri.viewer.ConfigData;
 
 import flash.events.Event;
 import flash.events.EventDispatcher;
+import flash.net.URLVariables;
 import flash.utils.Dictionary;
 
 import mx.resources.ResourceManager;

        portalItemToLabel = new Dictionary(true);
        processedArcGISBasemaps = [];
        totalBasemaps = configData.basemaps.length;
        for each (var portalItem:PortalItem in resultItems)
        {
            portalItemOrder.push(portalItem);
            portalItem.getJSONData(new AsyncResponder(portalItem_getJSONDataResultHandler,
                                                      portalItem_getJSONDataFaultHandler,
                                                      portalItem));
        }
    }

    private function portalItem_getJSONDataResultHandler(itemData:Object, item:PortalItem):void
    {
        createBasemapLayerObjectFromWebMapItemAndData(item, itemData);
        if (isDefaultBasemap(itemData.baseMap))

        }
    }

    private function item_getJSONDataFaultHandler(fault:Fault, token:Object = null):void
    {
        AppEvent.dispatch(AppEvent.APP_ERROR,
                          LocalizationUtil.getDefaultString("couldNotFetchBasemapData",
