Context context = UIUtil.obtainContext(arg0);
int numsFeed = ConfigurationManager.getIntProperty("webui.feed.stats",
4);
SummaryStatBean summary = statSubscribeService.getStatBean(context,
uid, type, freq, numsFeed);
StatSyndicationFeed feed = new StatSyndicationFeed();
if (StringUtils.isEmpty(feedType) || !formats.contains(feedType))
{
feedType = formats.get(0);
}
feed.setType(feedType);
feed.populate(arg0, summary);
return feed;
}