// Set the modification date
response.setModificationDate(feed.getPublishedDate());
// Write the feed back to the response
SyndFeedOutput output = new SyndFeedOutput();
Writer responseWriter = new OutputStreamWriter(response.getOutputStream(), characterEncoding);
output.output(feed, responseWriter);
response.getOutputStream().flush();
return true;
} catch (ContentRepositoryException e) {
logger.error("Error loading articles for feeds from {}: {}", site.getIdentifier(), e.getMessage());