230231232233234235236
public Window getWindowInstance(Class windowClass){ Window window = registeredWindows.get(windowClass); if (window!=null){ return window; } throw new WindowNotRegisteredException(); }