// update subscription entries
int entries = 0;
Set<SubscriptionEntry> newEntries = updatedSub.getEntries();
log.debug("newEntries.size() = " + newEntries.size());
if (newEntries.size() > 0) try {
PlanetManager pmgr = PlanetFactory.getPlanet().getPlanetManager();
// clear out old entries
pmgr.deleteEntries(sub);
// add fresh entries
sub.getEntries().clear();
sub.addEntries(newEntries);
// save and flush
pmgr.saveSubscription(sub);
PlanetFactory.getPlanet().flush();
log.debug("Added entries");
entries += newEntries.size();