Fix documentation of java samplecode.