code: private static GeometryCollection convertCollection(JGeometry geometry) {
          JGeometry[] elements = geometry.getElements();
          if (elements == null || elements.length == 0) {
              return GeometryCollection.createEmpty();
          }
          Geometry[] geometries = new Geometry[elements.length];
          for (int i = 0; i < elements.length; i++) {
              geometries[i] = convert(elements[i]);
          }
          return new GeometryCollection(geometries);
      }
docs: FIXME