logger.finer("Serving xml feed of type " + feedType);
SyndFeed feed = getFeed(request);
feed.setFeedType(feedType);
response.setContentType(MIME_TYPE);
response.setCharacterEncoding(FEED_ENCODING);
SyndFeedOutput output = new SyndFeedOutput();
output.output(feed, response.getWriter());
} catch (Exception e) {
logger.severe("Could not generate feed: " + e.getMessage(), e);
response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Could not generate feed: "
+ e.getMessage());
}