@Override
  public void shutdown() {
    remoteSpaceControllerClient.removeRemoteSpaceControllerClientListener(this);

    if (webServer != null) {
      webServer.shutdown();
      webServer = null;
    }
  }
  @Override
  public void startup() {
    int port =
        spaceEnvironment
            .getSystemConfiguration()
            .getPropertyInteger(
                MasterWebsocketManager.CONFIGURATION_MASTER_WEBSOCKET_PORT,
                MasterWebsocketManager.CONFIGURATION_MASTER_WEBSOCKET_PORT_DEFAULT);

    webServer =
        new NettyWebServer(
            "master", port, spaceEnvironment.getExecutorService(), spaceEnvironment.getLog());

    webSocketFactory =
        new BasicMultipleConnectionWebServerWebSocketHandlerFactory(
            this, spaceEnvironment.getLog());

    webServer.setWebSocketHandlerFactory("", webSocketFactory);

    webServer.startup();

    remoteSpaceControllerClient.addRemoteSpaceControllerClientListener(this);
  }