We need to look into the example in `examples/java-api` to see whether we can fix it or want to remove this example.