}
if (!statesUpdateInfos.isEmpty()) {
Set<FeedLinkReference> removedFeedRefs = new HashSet<FeedLinkReference>();
INewsBinDAO newsBinDAO = DynamicDAO.getDAO(INewsBinDAO.class);
for (Map.Entry<Long, List<StatesUpdateInfo>> mapEntry : statesUpdateInfos.entrySet()) {
INewsBin newsBin = newsBinDAO.load(mapEntry.getKey());
if (newsBin.updateNewsStates(mapEntry.getValue())) {
removeNews(db, removedFeedRefs, newsBin.removeNews(EnumSet.of(INews.State.DELETED)));
putEventTemplate(new NewsBinEvent(newsBin, null, true));
db.ext().store(newsBin, Integer.MAX_VALUE);
}