UserManager umgr = WebloggerFactory.getWeblogger().getUserManager();
WeblogManager wmgr = WebloggerFactory.getWeblogger().getWeblogManager();
WeblogEntryManager emgr = WebloggerFactory.getWeblogger().getWeblogEntryManager();
HitCountQueue hitCounter = HitCountQueue.getInstance();
// first get the current set of hits
List currentHits = hitCounter.getHits();
// now reset the queued hits
hitCounter.resetHits();
// tally the counts, grouped by weblog handle
Map hitsTally = new HashMap();
String weblogHandle = null;
for(int i=0; i < currentHits.size(); i++) {