private static void run() {
   AuthModule auth = new AuthModule();
   moduleManager.loadModule(auth);
   desktop.run();
   desktop.addLinkIcon(
       Resources.getImageIcon("web-site.png"),
       Settings.domain,
       new ActionListener() {
         @Override
         public void actionPerformed(ActionEvent arg0) {
           try {
             java.awt.Desktop.getDesktop().browse(new URL("http://" + Settings.domain).toURI());
           } catch (IOException | URISyntaxException e) {
             e.printStackTrace();
           }
         }
       });
   auth.addLoginListener(
       new LoginListener() {
         @Override
         public void onLogin(LoginEvent event) {
           login = event.getLogin();
           password = event.getPassword();
           UpdateModule updateModule = new UpdateModule();
           LaucherModule launcherModule = new LaucherModule();
           moduleManager.loadModule(updateModule);
           moduleManager.loadModule(launcherModule);
           moduleManager.loadExternalModules();
         }
       });
 }
 public static void exit() {
   DebugUtils.info("Closing application");
   moduleManager.unloadAllModules();
   desktop.getFrame().dispose();
 }