Clean zooz handling in java server