code: public Map<Artifact, Dependency> resolve(BomConfig config) throws Exception {
          Map<Artifact, Dependency> dependencies = new LinkedHashMap<Artifact, Dependency>();
          if (config != null && config.getImports() != null) {
              for (BomImport bom : config.getImports()) {
                  Map<Artifact, Dependency> deps = resolve(bom);
                  for (Map.Entry<Artifact, Dependency> e : deps.entrySet()) {
                      if (!dependencies.containsKey(e.getKey())) {
                          // order is important for imported boms
                          dependencies.put(e.getKey(), e.getValue());
                      }
                  }
              }
          }
          return dependencies;
      }
docs: Resolve all imports contained in the given configuration.
  
  @param config the Bom configuration
  @return all artifacts and related dependencies imported from external Boms
  @throws Exception in case of resolution failure