checkNotClosed();
try
{
if (topicName.indexOf('/') == -1 && topicName.indexOf(';') == -1)
{
DestSyntax syntax = AMQDestination.getDestType(topicName);
// for testing we may want to use the prefix to indicate our choice.
topicName = AMQDestination.stripSyntaxPrefix(topicName);
if (syntax == AMQDestination.DestSyntax.BURL)
{
return new AMQTopic(getDefaultTopicExchangeName(), new AMQShortString(topicName));