// zip file will be empty and the zip output stream will break
boolean shapefileCreated = false;
for (SimpleFeatureCollection curCollection : collections) {
if(curCollection.getSchema().getGeometryDescriptor() == null) {
throw new WFSException("Cannot write geometryless shapefiles, yet "
+ curCollection.getSchema() + " has no geometry field");
}
Class geomType = curCollection.getSchema().getGeometryDescriptor().getType().getBinding();
if(GeometryCollection.class.equals(geomType) || Geometry.class.equals(geomType)) {
// in this case we fan out the output to multiple shapefiles