code: @Override
      public void onConnectFinished(final Object client) {
          synchronized (connections) {
              final SynchronizeFXTomcatConnection syncFxClient = (SynchronizeFXTomcatConnection) client;
              connections.add(syncFxClient);
              connectionThreads.put(syncFxClient, Executors.newSingleThreadExecutor(new ThreadFactory() {
                  @Override
                  public Thread newThread(final Runnable runnable) {
                      final Thread thread = new Thread(runnable,
                              "synchronizefx client connection thread-" + System.identityHashCode(runnable));
                      thread.setDaemon(true);
                      return thread;
                  }
              }));
          }
      }
docs: CommandTransferServer