    package com.bluefire.flexDemo.model
    {
        import com.adobe.cairngorm.model.ModelLocator;
        import com.bluefire.flexDemo.model.Demo;

        //Note: newer version of Cairngorm use IModelLocator but this one does not...
        [Bindable]
        public class DemoModelLocator implements ModelLocator
        {
            public var demo:Demo;

            private static var _modelLocator:DemoModelLocator;        //singleton instance

            function DemoModelLocator()
            {
                demo = new Demo();
            }

            public static function getInstance():DemoModelLocator
            {
                if (_modelLocator == null)
                    _modelLocator = new DemoModelLocator();

                return _modelLocator;
            }
        }
    }