// sequence server.
ReplicationDataServer dataServer = new ReplicationDataServer(sequenceServer.getPort(), workingDir1, 0);
// Start the HTTP data server.
TaskRunner serverRunner = new TaskRunner(dataServer, "data-server");
serverRunner.start();
/*
* The server starts in another thread so we need to wait until it has
* started. We will wait until the dynamically allocated port is
* exported via the getPort method which occurs after server startup.