DatabaseVisitor exchangeListVisitor = new DatabaseVisitor()
{
public void visit(DatabaseEntry key, DatabaseEntry value) throws DatabaseException
{
ExchangeRecord exchangeRec = (ExchangeRecord) exchangeTB.entryToObject(value);
AMQShortString type = exchangeRec.getType();
if (ExchangeDefaults.TOPIC_EXCHANGE_CLASS.equals(type))
{
topicExchanges.add(exchangeRec.getNameShortString());