code: public GeometryCollectionTo toTransferObject(GeometryCollection input) {
          GeometryCollectionTo result = new GeometryCollectionTo();
          GeoJsonTo[] tos = new GeoJsonTo[input.getNumGeometries()];
          for (int i = 0; i < input.getNumGeometries(); i++) {
              tos[i] = toTransferObject(input.getGeometryN(i));
              tos[i].setCrs(null); // Crs may not be repeated
          }
          result.setGeometries(tos);
          result.setCrs(GeoJsonTo.createCrsTo("EPSG:" + input.getSRID()));
          return result;
      }
docs: Converts a multipolygon to its corresponding Transfer Object
  
  @param input the multipolygon
  @return the transfer object for the geometrycollection