XmlNew() throws exception with Java 21

java.lang.IllegalArgumentException Property ‘http://javax.xml.XMLConstants/property/accessExternalDTD’ is not recognized.

OS: MacOS
Java Version: OpenJDK21
Lucee Version: 6.0.0.585 + CommandBox

Function works as expected if I use OpenJDK 11.

I’m not sure, but isn’t that because of XML External Entities (XXE) - ColdFusion Security Guide