Encoder encoder = new Encoder(configuration, configuration.schema());
encoder.setEncoding(Charset.forName( wfs.getGeoServer().getGlobal().getCharset()) );
encoder.setSchemaLocation(org.geoserver.wfs.xml.v1_1_0.WFS.NAMESPACE,
ResponseUtils.appendPath(wfs.getSchemaBaseURL(), "wfs/1.1.0/wfs.xsd"));
encoder.encode(hits, org.geoserver.wfs.xml.v1_1_0.WFS.FEATURECOLLECTION, output);
}
private BigInteger countFeature(FeatureCollectionType fct) {
BigInteger count = BigInteger.valueOf(0);
for (int fcIndex = 0; fcIndex < fct.getFeature().size(); fcIndex++) {