public void shutDown() {
   closing = true;
   try {
     socketServer.close();
   } catch (IOException e) {
     throw new IllegalStateException("Unable to stop the WebSocket server", e);
   }
 }
 public void handleClientContainerFirstConnection() throws IOException {
   while (true) {
     WebSocket ws = socketServer.accept();
     if (PLATFORM_URI.equals(ws.getRequestUri())) {
       LOG.info("New connection request - GET " + ws.getRequestUri());
       (new PlatformManagerProxyReader(ws)).start();
     } else {
       LOG.warn("Unsupported request - GET " + ws.getRequestUri());
       silentClose(ws);
     }
   }
 }