On statistical mechanics of gravitational systems