private void InitializeIOC()
        {
            // Create the IOC container
            IOC = new Container();

            // Create the Default Factory
            var controllerFactory = new MunqControllerFactory(IOC);

            // set the controller factory
            ControllerBuilder.Current.SetControllerFactory(controllerFactory);

            // Register the dependencies
            // Article3
            // The dependencies to the concrete implementation should be externalized
            //new AccountMembershipRegistrar().Register(IOC);
            //new AuthenticationRegistrar().Register(IOC);

            ConfigurationLoader.FindAndRegisterDependencies(IOC);

            // Register the Controllers
            IOC.Register <IController>("Home", ioc => new HomeController());
            IOC.Register <IController>("Account",
                                       ioc => new AccountController(ioc.Resolve <IFormsAuthentication>(),
                                                                    ioc.Resolve <IMembershipService>())
                                       );
        }