List<QmfConsoleData> bindings = _console.getObjects("org.apache.qpid.broker", "binding");
List<QmfConsoleData> queues = _console.getObjects("org.apache.qpid.broker", "queue");
for (QmfConsoleData exchange : exchanges)
{
ObjectId exchangeId = exchange.getObjectId();
String name = exchange.getStringValue("name");
if (filter.equals("") || filter.equals(name))
{
System.out.printf("Exchange '%s' (%s)\n", name, exchange.getStringValue("type"));
for (QmfConsoleData binding : bindings)
{
ObjectId exchangeRef = binding.getRefValue("exchangeRef");
if (exchangeRef.equals(exchangeId))
{
ObjectId queueRef = binding.getRefValue("queueRef");
QmfConsoleData queue = findById(queues, queueRef);
String queueName = "<unknown>";
if (queue != null)
{