//private Application(string connectionString, string databaseProvider, bool useLocalApplicationData)
        //{
        //    _connectionString = connectionString;
        //    _databaseProvider = databaseProvider;
        //    _standalone = true;
        //    _useLocalApplicationData = useLocalApplicationData;
        //}

        //private static string UmbracoVersion
        //{
        //    // this is what ApplicationContext.Configured wants in order to be happy
        //    get { return global::Umbraco.Core.Configuration.UmbracoVersion.Current.ToString(3); }
        //}

        //private readonly bool _standalone;
        //private readonly string _connectionString;
        //private readonly string _databaseProvider;
        //private readonly bool _useLocalApplicationData;

        // get app in ASP.NET context ie it already exists, not standalone, don't start anything
        public static Application GetApplication()
        {
            lock (LockO)
            {
                if (_application == null)
                {
                    _application = new Application();
                    // do NOT start it!
                }
                return _application;
            }
        }