//this is a dummy wrapper around our 'request' object so that the new Dispatcher will accept it.
Service serviceDesc = new Service("wms", null, null, Collections.EMPTY_LIST);
Operation opDescriptor = new Operation("",serviceDesc,null, new Object[] { gfreq });
final GeoServer gs = wmsConfig.getGeoServer();
GML2OutputFormat format = new GML2OutputFormat(gs);
format.write(features, out, opDescriptor);
}