protected void write(Object object, OutputStream out) throws IOException {
SimpleFeatureCollection features = (SimpleFeatureCollection) object;
GML gml = new GML(Version.WFS1_0);
gml.setNamespace("gf", features.getSchema().getName().getNamespaceURI());
// gml.setFeatureBounding(false);
gml.encode(out, features);
}
}
}