 
 package weave.data.DataSources
 {
-    import flash.net.URLRequest;
+    import mx.rpc.events.FaultEvent;
     
-    import mx.rpc.events.FaultEvent;
-    import mx.rpc.events.ResultEvent;
-    
-    import weave.compiler.StandardLib;
-    import weave.compiler.Compiler;
-    import WeaveAPI;
     import weave.api.data.ColumnMetadata;
-    import weave.api.data.DataType;
-    import weave.api.data.IAttributeColumn;
-    import weave.api.data.IColumnReference;
     import weave.api.data.IDataSource;
     import weave.api.data.IDataSource_Service;
     import weave.api.data.IWeaveTreeNode;
     import weave.api.newLinkableChild;
     import weave.api.registerLinkableChild;
     import weave.api.reportError;
+    import weave.compiler.Compiler;
+    import weave.compiler.StandardLib;
     import weave.core.LinkableString;
     import weave.data.AttributeColumns.ProxyColumn;
     import weave.data.hierarchy.ColumnTreeNode;
-    import weave.primitives.Dictionary2D;
     import weave.services.JsonCache;
-    import weave.services.addAsyncResponder;
     import weave.utils.DataSourceUtils;
-    import weave.utils.DebugUtils;
     import weave.utils.VectorUtils;
-    import weave.core.CallbackCollection;
 
     public class CensusDataSource extends AbstractDataSource implements IDataSource_Service
     {

        	
        	jsonCache.getJsonObject(getUrl(web_service, params), function(result:Object):void
        	{
        		var columns:Array = result[0] as Array;
        		var rows:Array = result as Array;
        		var data_column:Array = new Array(rows.length - 1);
        		var key_column:Array = new Array(rows.length - 1);
        		var key_column_indices:Array = new Array(columns.length);
        		var data_column_index:int = columns.indexOf(variable_name);
        		for (var idx:int = 0; idx < key_column_names.length; idx++)
        		{
        			key_column_indices[idx] = columns.indexOf(key_column_names[idx]);
        		}

								concepts[concept_name][key] = metadata;
							}

							for (key in concepts)
							{
								children.push(createConceptNode({
									variables: concepts[key],
