The current code does not yet support v6. We need to port this PR from Go to Java.