public SimilarRanges InitSimilarRanges(SligoCS.BL.WI.QueryMarshaller Marshaller)
        {
            SimilarRanges ranges = new SimilarRanges();

            DataSet ds = Marshaller.Database.DataSet;

            Marshaller.InitLists();
            Marshaller.Database.SQL = BuildWsasSimilarCurrentAgencyQuery(Marshaller);
            Marshaller.ManualQuery();
//            throw new Exception(Marshaller.Database.SQL);

            GlobalValues globals = Marshaller.GlobalValues;


            if (globals.SIZE.Key == SIZEKeys.On)
            {
                ranges.Add(InitSizeRange(Marshaller));
            }

            if (globals.SPEND.Key == SPENDKeys.On)
            {
                ranges.Add(InitSpendingRange(Marshaller));
            }

            if (globals.ECON.Key == ECONKeys.On)
            {
                ranges.Add(InitDemographicsRange(Marshaller, globals.ECON.Name, v_WSASDemographics.PctEcon));
            }

            if (globals.LEP.Key == LEPKeys.On)
            {
                ranges.Add(InitDemographicsRange(Marshaller, globals.LEP.Name, v_WSASDemographics.PctLEP));
            }

            if (globals.DISABILITY.Key == DISABILITYKeys.On)
            {
                ranges.Add(InitDemographicsRange(Marshaller, globals.DISABILITY.Name, v_WSASDemographics.PctDisabled));
            }

            //StringBuilder sb = new StringBuilder();
            //ranges.ForEach(delegate(SimilarRange rng) { sb.Append(String.Format("name: {0}; min: {1}; max {2};", rng.MeasureName, rng.Min, rng.Max)); });
            //throw new Exception(sb.ToString());

            return(ranges);
        }