delegate = new ClientConnectionFactoryDelegate(id, locator);
delegate = new ClientConnectionFactoryDelegate(id, getLocatorURI());
   private ConnectionFactory setupConnectionFactory(String clientID) throws Exception   {      String id = genConnFactoryID();      ServerConnectionFactoryEndpoint endpoint =         new ServerConnectionFactoryEndpoint(id, this, clientID);      Dispatcher.singleton.registerTarget(id, endpoint);      connFactoryDelegates.put(id, endpoint);      ClientConnectionFactoryDelegate delegate;      try      {         delegate = new ClientConnectionFactoryDelegate(id, locator);      }      catch (Exception e)      {         throw new JBossJMSException("Failed to create connection factory delegate", e);      }      JBossConnectionFactory connFactory = new JBossConnectionFactory(delegate);      return connFactory;   }