That's a simple copy of the Nsw segment maker from release 23.0.32 modulo the renaming changes. It should overcome the problems reported in ATLASRECTS-7748.
Tagging: @jchapman, @jcatmore, @hgray, @cdelitzs, @cerutti, @mdunford, @stavrop, @kluit