TopicConnectionFactory factory = (TopicConnectionFactory) new MantaTopicConnectionFactory();
return factory.createTopicConnection();
} else {
QueueConnectionFactory factory = (QueueConnectionFactory) new MantaQueueConnectionFactory();
return factory.createQueueConnection();
}
} else {