public void addRegistration(PushTopicRegistration reg) throws Exception
{
if (reg.isEnabled() == false) return;
String destination = reg.getDestination();
ClientSession session = sessionFactory.createSession(false, false, false);
ClientSession.QueueQuery query = session.queueQuery(new SimpleString(destination));
ClientSession createSession = null;
if (!query.isExists())
{
createSession = createSubscription(destination, reg.isDurable());
}