List hotBlogs = mgr.getHotWeblogs(sinceDays, 0, length);
Iterator hitCounts = hotBlogs.iterator();
while (hitCounts.hasNext()) {
WeblogHitCount hitCount = (WeblogHitCount) hitCounts.next();
StatCount statCount = new StatCount(
hitCount.getWeblog().getId(),
hitCount.getWeblog().getHandle(),
hitCount.getWeblog().getName(),
"statCount.weblogDayHits",
hitCount.getDailyHits());
statCount.setWeblogHandle(hitCount.getWeblog().getHandle());
results.add(statCount);
}
} catch (Exception e) {
log.error("ERROR: fetching hot weblog list", e);