freq.setMaxFeatures(fInfoReq.getFeatureCount());
List queries = null;
freq.setQueries(queries);
GetFeatureResults getFeatureResults = new GetFeatureResults(freq);
FeatureTypeInfo finfo;
FeatureResults fresults;
int i = 0;
for (Iterator it = results.iterator(); it.hasNext(); i++) {
fresults = (FeatureResults) it.next();
finfo = (FeatureTypeInfo) metas.get(i);
getFeatureResults.addFeatures(finfo, fresults);
}
GML2FeatureResponseDelegate encoder = new GML2FeatureResponseDelegate();
encoder.prepare("GML2", getFeatureResults);
encoder.encode(out);