public void setLegacyFiledsForTopicType(AMQDestination dest)
{
// legacy support
dest.setExchangeName(new AMQShortString(dest.getAddressName()));
ExchangeNode node = (ExchangeNode)dest.getTargetNode();
dest.setExchangeClass(node.getExchangeType() == null?
ExchangeDefaults.TOPIC_EXCHANGE_CLASS:
new AMQShortString(node.getExchangeType()));
dest.setRoutingKey(new AMQShortString(dest.getSubject()));
}