}
@Override
public void render(ActionRequest request, RssData resultObject) throws Exception {
Feed feed = resultObject.getFeed();
FeedWriter feedWriter = new FeedWriter(feed);
HttpServletResponse response = request.getHttpServletResponse();
response.setContentType(rssMimeType);
response.setCharacterEncoding(feed.getEncoding());
Writer out = null;
try {
out = response.getWriter();
feedWriter.write(out);
} catch (Exception ex) {
log.error("Could not write feed.", ex);
} finally {
StreamUtil.close(out);
}