ensureAOPConfigLoaded((ClientConnectionFactoryDelegate)delegate); initDelegate();  ConnectionDelegate cd = delegate.createConnectionDelegate(username, password); return new JBossConnection(cd, type);
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(); }
   protected JBossConnection createConnectionInternal(String username, String password,                                                      boolean isXA, int type)      throws JMSException   {      ensureAOPConfigLoaded((ClientConnectionFactoryDelegate)delegate);      initDelegate();                  ConnectionDelegate cd = delegate.createConnectionDelegate(username, password);      return new JBossConnection(cd, type);   }