code: public void endContextClassLoader(ClassLoader raClassLoader, ClassLoader previousClassLoader) {
          if (raClassLoader != null) {
              AccessController.doPrivileged(new GetAndSetContextClassLoader(previousClassLoader));
          }
      }
docs: Restore current context class loader saved when the context class loader was set to the one
  for the resource adapter.
  
  @param raClassLoader
  @param previousClassLoader