logger.debug("Found object on stack with expression '" + feedName + "': " + feed);
if (feedType != null) // if the feedType is specified, we'll override the one set in the feed object
feed.setFeedType(feedType);
SyndFeedOutput output = new SyndFeedOutput();
// we'll need the writer since Rome doesn't support writing to an outputStream yet
Writer out = null;
try {
out = ServletActionContext.getResponse().getWriter();
preprocess(feed);
output.output(feed, out);
postprocess(feed);
} catch (Exception e) {
// Woops, couldn't write the feed ?
logger.error("Could not write the feed: " + e.getMessage(), e);
} finally {