FieldTable ft = new FieldTable();
ft.setString("x-match", "any");
ft.setString("F1000", "1");
consumerSession.declareAndBind(queue, ft);
MessageConsumer consumer = consumerSession.createConsumer(queue);
// force synch to ensure the consumer has resulted in a bound queue
// ((AMQSession) consumerSession).declareExchangeSynch(ExchangeDefaults.HEADERS_EXCHANGE_NAME, ExchangeDefaults.HEADERS_EXCHANGE_CLASS);
// This is the default now
Connection con2 = (AMQConnection) getConnection("guest", "guest");