}
// Create the request.
int cpus = computer.getNode().getCpus();
int mem = computer.getNode().getMem();
Mesos.SlaveRequest request = new Mesos.SlaveRequest(new JenkinsSlave(name), cpus, mem);
// Launch the jenkins slave.
final Lock lock = new ReentrantLock();
final CountDownLatch latch = new CountDownLatch(1);