docs: private ModelNode populateModuleInfo(ModuleInfo module) throws Exception {
          ModelNode result = new ModelNode();
          result.get("name").set(module.getName());
  
          ModelNode value;
          value = result.get("main-class");
          if (module.getMainClass() != null) {
              value.set(module.getMainClass());
          }
          value = result.get("fallback-loader");
          if (module.getFallbackLoader() != null) {
              value.set(module.getFallbackLoader());
          }
  
          ModelNode dependencies = result.get("dependencies").setEmptyList();
          for (DependencyInfo dependencySpec : module.getDependencies()) {
              if (dependencySpec.getModuleName() == null) {
                  continue; //todo check why it returns empty dependancy
              }
              ModelNode dependency = dependencies.add();
              dependency.get("dependency-name").set(dependencySpec.getDependencyType());
              dependency.get("module-name").set(dependencySpec.getModuleName());
              dependency.get("export-filter").set(dependencySpec.getExportFilter());
              dependency.get("import-filter").set(dependencySpec.getImportFilter());
              dependency.get("optional").set(dependencySpec.isOptional());
              value = result.get("local-loader-class");
              if (dependencySpec.getLocalLoader() != null) {
                  value.set(dependencySpec.getLocalLoader());
              }
  
              if (dependencySpec.getLocalLoaderPaths() != null) {
                  ModelNode paths = dependency.get("local-loader-paths");
                  for (String path : dependencySpec.getLocalLoaderPaths()) {
                      paths.add(path);
                  }
              }
          }
          ModelNode resourceLoaders = result.get("resource-loaders").setEmptyList();
          for (ResourceLoaderInfo loaderInfo : module.getResourceLoaders()) {
              ModelNode loader = resourceLoaders.add();
              loader.get("type").set(loaderInfo.getType());
              ModelNode paths = loader.get("paths");
              for (String path : loaderInfo.getPaths()) {
                  paths.add(path);
              }
  
          }
          return result;
      }