private Set<AddonDependency> fromAddonDependencyEntries(AddonImpl addon, Set<AddonDependencyEntry> entries)
{
Set<AddonDependency> result = new HashSet<AddonDependency>();
for (AddonDependencyEntry entry : entries)
{
result.add(new AddonDependencyImpl(lock, addon, new SingleVersionRange(entry.getId().getVersion()),
getAddon(entry.getId()), entry.isExported(), entry.isOptional()));
}
return result;
}