use compression from java client