SessionDelegate sessionDelegate = delegate.createSessionDelegate(transacted, acknowledgeMode, isXA); return new JBossSession(sessionDelegate, type);
ThreadContextClassLoaderChanger tccc = new ThreadContextClassLoaderChanger();  try { tccc.set(getClass().getClassLoader());  SessionDelegate sessionDelegate = delegate.createSessionDelegate(transacted, acknowledgeMode, isXA); return new JBossSession(sessionDelegate, type); } finally { tccc.restore(); }
   protected JBossSession createSessionInternal(boolean transacted, int acknowledgeMode,                                                boolean isXA, int type) throws JMSException   {      if (transacted)      {         acknowledgeMode = Session.SESSION_TRANSACTED;      }      SessionDelegate sessionDelegate = delegate.createSessionDelegate(transacted, acknowledgeMode, isXA);      return new JBossSession(sessionDelegate, type);   }