private void execute(Polygon polygon) {
LinearRing ring = null;
if (index.isExteriorRing()) {
ring = polygon.getExteriorRing();
LineString lineString = execute(ring);
setExteriorRing(polygon, (LinearRing) lineString);
} else if (index.getInteriorRingIndex() >= 0) {
ring = polygon.getInteriorRingN(index.getInteriorRingIndex());
LineString lineString = execute(ring);
setInteriorRingN(polygon, (LinearRing) lineString, index.getInteriorRingIndex());
}
}