DistributionType distType = distManager.getDistributionTypeByName(detail.getDistributionType());
Distribution newDist = distManager.createDistribution(overlord, detail.getLabel(), detail
.getDistributionPath(), distType);
log.debug("Created new distribution: " + newDist);
Repo repo = repoManager.getRepo(overlord, report.getRepoId());
RepoDistribution repoDist = new RepoDistribution(repo, newDist);
log.debug("Created new mapping of RepoDistribution repoId = " + repo.getId() + ", distId = "
+ newDist.getId());
entityManager.persist(repoDist);
List<DistributionFileDetails> files = detail.getFiles();
for (DistributionFileDetails f : files) {