removed un-used code from java client