public static synchronized void restart(String context) throws Exception { if (server == null) start(context); else server.restartContexts(); }
public static synchronized void stop() throws Exception { if (server != null) { server.stop(); server = null; } }