public static StateContainer GetStateContainer()
 {
     if (stateContainer == null)
     {
         stateContainer = new StateContainer();
         stateContainer.registrationStateService = RegistrationStateService.GetRegistrationStateService();
         stateContainer.sessionStateService      = SessionStateService.GetSessionStateService();
     }
     return(stateContainer);
 }