else
{
Address address = createAddressFromString(str);
if(useNodeTypeForDestinationType)
{
AddressHelper helper = new AddressHelper(address);
switch(helper.getNodeType())
{
case AMQDestination.QUEUE_TYPE:
return new AMQQueue(address);
case AMQDestination.TOPIC_TYPE:
return new AMQTopic(address);