ResourceDescriptor resource = filter.up();
GatewayDescriptor gateway = resource.up();
for( GatewayParamDescriptor param : gateway.params() ) {
paramMap.put( param.name(), param.value() );
}
for( ResourceParamDescriptor param : resource.params() ) {
paramMap.put( param.name(), param.value() );
}
//TODO: Should all elements of the resource and gateway descriptor somehow be added to the filter params?
//TODO: Should we use some composite params object instead of copying all these name value pairs?
paramMap.put( "pattern", resource.pattern() );