private static Map<String, String> createParams( FilterDescriptor filter ) {
Map<String, String> paramMap = new HashMap<String, String>();
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() );
}