I'm wondering if it's possible for QuPath to automate a process that draws something like the below right image, breaking apart the lines of the left image.

I ask because when deploying my qupath coordinates to a server the server currently does not support hole generation. I also don't want to force a connection between the outer and inner polygons, leaving a line in between the two. So I was wondering if the "horseshoe" idea is possible...can we write code to break a small part of the inner and outer polygons and establish a connection between them, and do this across all inner polygons (if an outer polygon has multiple inner polygons?).
I'm wondering if it's possible for QuPath to automate a process that draws something like the below right image, breaking apart the lines of the left image.

I ask because when deploying my qupath coordinates to a server the server currently does not support hole generation. I also don't want to force a connection between the outer and inner polygons, leaving a line in between the two. So I was wondering if the "horseshoe" idea is possible...can we write code to break a small part of the inner and outer polygons and establish a connection between them, and do this across all inner polygons (if an outer polygon has multiple inner polygons?).