Great catch. `toSerializationFormatWithAddress` is in the scala example but not in the java one. Will fix.