code: private void installModules(final Node node, final NetworkContext context, final Handler<AsyncResult<Void>> doneHandler) {
      List<ModuleContext> modules = new ArrayList<>();
      for (ComponentContext<?> component : context.components()) {
        if (component.isModule()) {
          modules.add(component.asModule());
        }
      }
  
      final CountingCompletionHandler<Void> counter = new CountingCompletionHandler<Void>(modules.size()).setHandler(doneHandler);
      for (ModuleContext module : modules) {
        installModule(node, module, counter);
      }
    }
docs: Installs all modules on a node.