public synchronized void recordStatistics(QueryStatistic statistic){
  queryStatistics.add(statistic);
}

public synchronized void recordStatistics ( QueryStatistic statistic ) { queryStatistics . add ( statistic ) ; }
below method will be used to add the statistics
