protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
        {
            // Build a configuration
            var config = new FluidityConfig();
            var args   = new FluidityStartingEventArgs {
                Config = config
            };

            OnFluidityStarting(this, args);

            config = args.Config;
            config.PostProcess();

            // Configure the fluidity context
            FluidityContext.EnsureContext(config,
                                          new FluidityDataContext(
                                              new FluidityRepositoryFactory()
                                              ),
                                          new FluidityServiceContext(
                                              new FluidityEntityService()
                                              )
                                          );

            // Create the sections / trees
            new UmbracoUiHelper().Build(FluidityContext.Current);

            //TODO: Cleanup any orphan sections / trees that may be left over from renames
        }
 protected virtual void OnFluidityStarting(object sender, FluidityStartingEventArgs e)
 {
     if (FluidityStarting != null)
     {
         try
         {
             FluidityStarting(sender, e);
         }
         catch (Exception ex)
         {
             LogHelper.Error <UmbracoApplicationBase>("An error occurred in an FluidityStarting event handler", ex);
             throw;
         }
     }
 }