<BUG>feedSubscriptionCriteria = new FeedSubscriptionCriteria();feedSubscriptionCriteria.setUserId(principal.getId());feedSubscriptionCriteria.setFeedUrl(feed.getRssUrl());feedSubscriptionList = feedSubscriptionDao.findByCriteria(feedSubscriptionCriteria);</BUG><CONTEXT>try {feed = feedService.synchronize(url);} catch (Exception e) {throw new ServerException("FeedError", MessageFormat.format("Error retrieving feed at {0}", url), e);}<extra_id_0>if (!feedSubscriptionList.isEmpty()) {</CONTEXT>
feedSubscriptionCriteria = new FeedSubscriptionCriteria().setUserId(principal.getId())feedSubscriptionList = feedSubscriptionDao.findByCriteria(feedSubscriptionCriteria);