[Geoserver-users] DXF OutputFormat for WFS contains no Z (code 30) value for POLYGON Z

Geoserver: 20.20.1
Ubuntu: 11.0.13 (OpenJDK 64-Bit Server VM)
Database: PostgreSQL 12.7 on x86_64-pc-linux-gnu

URLs used in test (tried multiple WFS version numbers as this seemed to fix a issue with QGIS not importing Z value from geoserver WFS):

https://10.220.187.164/geoserver/mmodel/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=mmodel%3Ams_zones_clb&outputFormat=DXF

https://10.220.187.164/geoserver/mmodel/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=mmodel%3Ams_zones_clb&outputFormat=DXF

Issue:
When exporting a DXF using one of the URLs, the resulting DXF does not include a Z value (code 30 in DXF). If I export the same polygons as a SHAPEFILE or GeoJSON, the Z value is included. The polygons are stored in PostGIS and POLYGON Z

snippet from resulting DXF:

MS_ZONES_CLB
100
AcDbPolyline
90
10
43
0.0
10
747693.95
20
7529014.65
10
747716.17
20
7529014.71
10
747718.44
20
7529011.17
10
747718.11
20
7529005.41

.
.
.

My amateurish (I am not a developer) search of the extension code (lines 390-398 of AbstractDXFWriter.java) suggests that outputting Z is possible and I cannot find any discussion on the topic in this mailing list or more generally when searching google. Does anybody know if it is possible to export a DXF with Z or have any advice on how to achieve this?

Thanks,
Rex