// have been modified after the given date. Without this, when there
// are no changes, we would still have all of the overhead of fetching
// the feed's meta data but get zero entries. In terms of efficiency,
// we don't care about the feed unless it is going to tell us something
// new.
Feed feed = (Feed) service.query(query, Feed.class, ifModifiedSince);
List entries = feed.getEntries();
LOGGER.info("Fetched " + entries.size() + " of " +
feed.getTotalResults() + " total updated entries.");
Collections.sort(entries, new EntryUpdatedAscendingComparator());
for (ListIterator ei = entries.listIterator(); ei.hasNext();) {
Entry entry = (Entry) ei.next();
documents.add(makeDocument(entry));
}