code: public ClassLoader beginContextClassLoader(ClassLoader raClassLoader) {
          return raClassLoader == null ? null
                          : AccessController.doPrivileged(new GetAndSetContextClassLoader(raClassLoader));
      }
docs: Set context classloader to the one for the resource adapter
  
  @param raClassLoader
  @return the current classloader