public void stop() {
   if (server.isStarted()) {
     server.stop();
   }
 }