code: private void deployNetwork(final NetworkContext context, final Handler<AsyncResult<NetworkContext>> doneHandler) {
      log.debug(String.format("%s - Deploying network", NetworkManager.this));
      final CountingCompletionHandler<Void> complete = new CountingCompletionHandler<Void>(context.components().size());
      complete.setHandler(new Handler<AsyncResult<Void>>() {
        @Override
        public void handle(AsyncResult<Void> result) {
          if (result.failed()) {
            new DefaultFutureResult<NetworkContext>(result.cause()).setHandler(doneHandler);
          } else {
            new DefaultFutureResult<NetworkContext>(context).setHandler(doneHandler);
          }
        }
      });
      deployComponents(context.components(), complete);
    }
docs: Deploys a complete network.