             service: services.authentication,
             router: router
         )
-        
-        guard let appWindow = UIApplication.shared.delegate?.window,
-              let window = appWindow else { fatalError() }
         
         let contentWireframe = WindowContentWireframe(window: window)
         let modalWireframe = WindowModalWireframe(window: window)

        
        _ = PrincipalWindowSceneController(sessionState: services.sessionState, scene: principalWindowScene)
    }

}

    }
    
    static func openNotification(_ userInfo: [AnyHashable: Any], completionHandler: @escaping () -> Void) {
        instance.principalWindowController.route(NotificationContentRepresentation(userInfo: userInfo))
    }
    
    static func resume(activity: NSUserActivity) {
        let activityDescription = SystemActivityDescription(userActivity: activity)
        let contentRepresentation = UserActivityContentRepresentation(activity: activityDescription)
        instance.principalWindowController.route(contentRepresentation)
    }

    private init() {
