String queueName = hqQueue.getAddress();
ClientSession session = manager.getSessionFactory().createSession(false, false, false);
try
{
ClientSession.QueueQuery query = session.queueQuery(new SimpleString(queueName));
if (!query.isExists())
{
if (queue.getSelector() != null)
{
session.createQueue(queueName, queueName, queue.getSelector(), queue.isDurable());