public void addStatistic(String statKey, Statistic definition) {
        statistics.put(statKey, definition);
    }
Adds a stat to be tracked to the StatManager.

@param statKey the statistic key.
@param definition the statistic to be tracked.
xmppserver/src/main/java/org/jivesoftware/openfire/stats/StatisticsManager.java