ConnectionDelegate cd = delegate.createConnectionDelegate(username, password);
ConnectionDelegate cd = delegate.createConnectionDelegate(username, password, null);
   protected JBossConnection createConnectionInternal(String username, String password,                                                      boolean isXA, int type)      throws JMSException   {      ThreadContextClassLoaderChanger tccc = new ThreadContextClassLoaderChanger();      try      {         tccc.set(getClass().getClassLoader());         ensureAOPConfigLoaded((ClientConnectionFactoryDelegate)delegate);         initDelegate();         ConnectionDelegate cd = delegate.createConnectionDelegate(username, password);         return new JBossConnection(cd, type);      }      finally      {         tccc.restore();      }   }