fix to java client example