return;
}
ArtifactContext artifactContext = new ArtifactContext(name, version, ArtifactContext.CAR, ArtifactContext.JAR);
ArtifactResult result = repositoryManager.getArtifactResult(artifactContext);
if(!optional
&& (result == null || result.artifact() == null || !result.artifact().exists())){
throw new RuntimeException("Missing module: "+ModuleUtil.makeModuleName(name, version));
}
// save even missing optional modules as nulls to not re-resolve them
loadedModules.put(name, result);
loadedModuleVersions.put(name, version);