// can't create context before resolution is frozen!
        protected override void FreezeResolution()
        {
            base.FreezeResolution();

            var httpContext = new StandaloneHttpContext();
            UmbracoContext.EnsureContext(httpContext, ApplicationContext.Current, false, false);
        }