finished the Java REST client