Use managed transactions in statistics-impl