private void buttonServerControllerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonServerControllerActionPerformed
        if (!Server.isRunning) {
            try {
                server = new Server();
                serverThread = new Thread(server);
                serverThread.start();
            } catch (Exception e) {
                printException(e);
            }
        } else {
            if (server != null) {
                try {
                    server.shutdown();
                } catch (Exception e) {
                    printException(e);
                }
            }

            serverThread = null;
            server = null;
        }

        Server.isRunning = !Server.isRunning;

        buttonServerController.setText((Server.isRunning ? "Stop" : "Start") + " Server");
    }//GEN-LAST:event_buttonServerControllerActionPerformed