//set the content disposition
StringBuffer filename = new StringBuffer();
boolean containsRasterData = false;
boolean isRegionatingFriendly = true;
for ( int i = 0; i < request.getLayers().length; i++ ) {
MapLayerInfo layer = request.getLayers()[i];
String name = layer.getName();
containsRasterData = containsRasterData || (layer.getType() == MapLayerInfo.TYPE_RASTER);
if (layer.getType() == MapLayerInfo.TYPE_VECTOR) {
isRegionatingFriendly = isRegionatingFriendly &&
layer.getFeature().getFeatureSource(null,null).getQueryCapabilities().isReliableFIDSupported();
} else if (layer.getType() == MapLayerInfo.TYPE_REMOTE_VECTOR) {
isRegionatingFriendly = isRegionatingFriendly &&
layer.getRemoteFeatureSource().getQueryCapabilities().isReliableFIDSupported();
}
//strip off prefix
int j = name.indexOf(':');
if ( j > -1 ) {