@Override
public VerticleConfig removeVerticle(String name, final Handler<AsyncResult<ActiveNetwork>> doneHandler) {
// Undeploy a single verticle by creating a copy of the network with the
// verticle as its only element. When then network is undeployed, the verticle
// will be removed from the network.
VerticleConfig verticle = network.removeVerticle(name);
NetworkConfig undeploy = new DefaultNetworkConfig(network.getName());
undeploy.addVerticle(verticle);
cluster.undeployNetwork(undeploy, new Handler<AsyncResult<Void>>() {
@Override
public void handle(AsyncResult<Void> result) {