         updateTotalArcGISBasemaps();
     }
 
-    private function createBasemapLayerObject(itemData:Object, item:PortalItem):void
+    private function createBasemapLayerObjectFromWebMapItemAndData(item:PortalItem, itemData:Object):void
     {
         if (!itemData)
         {


    private function portalItem_getJSONDataResultHandler(itemData:Object, item:PortalItem):void
    {
        createBasemapLayerObject(itemData, item);
        if (isDefaultBasemap(itemData.baseMap))
        {
            defaultBasemapTitle = itemData.baseMap.title;

        {
            layerXML = createTiledLayerXML(title, iconURL, url, basemapLayerObject, false);
        }
        else if (isNonEsriType(type))
        {
            layerXML = createNonEsriLayerXML(title, iconURL, basemapLayerObject, false, type);
        }
