private void persistStatsInDB(List<Stat> stats) throws BaseCollectionException {
  if (!stats.isEmpty()) {
    _keyMap.put(Constants._Stats,stats);
    dumpStatRecords();
    injectStats();
    stats.clear();
  }
}

private void persistStatsInDB ( List < Stat > stats ) throws BaseCollectionException { if ( ! stats . isEmpty ( ) ) { _keyMap . put ( Constants . _Stats , stats ) ; dumpStatRecords ( ) ; injectStats ( ) ; stats . clear ( ) ; } }
dump records on disk & persist the records in db .
