src/main/java/org/jboss/util/loading/ContextClassLoaderSwitcher.java
/**
       * Reset back to the original classloader,
       * only when it has changed.
       */
Reset back to the original classloader,
only when it has changed.
Reset back to the original classloader only when it has changed .
public void reset()
      {
         if (currentCL != null && currentCL != origCL)
            setContextClassLoader(currentThread, origCL);
      }
public void reset ( ) { if ( currentCL != null && currentCL != origCL ) setContextClassLoader ( currentThread , origCL ) ; }
Reset back to the original classloader,
 only when it has changed.
Reset back to the original classloader only when it has changed .