webServer.shutdown();
        public void shutdown(String dbname, int remainingInstances) {            if(remainingInstances == 0) {                // give the server a 1s chance to complete pending requests                Timer timer = new Timer();                timer.schedule(new TimerTask() {                    public void run() {                        System.out.println("killing threads ...");                        try {                            httpServer.stop();                        } catch (InterruptedException e) {                            e.printStackTrace();                        }                        webServer.shutdown();                        System.exit(0);                    }                }, 1000);            }        }