I am testing the latest version as we have noticed a problem with an older one, but that problem seems to be present in the latest version too.
Specifically, I created this test document to showcase the issue:
test-dev…...document, InputStream xmlStream, boolean withRegions) throws Exception...