Global object's location  to enable GZIP in Java

Reference to Global Java object for easy lookup.
Merge pull request #3635 from arifchishti/master

Global object's location  to enable GZIP in Java