code: static void setThreadContextClassLoader(final ClassLoader cl)
     {
        AccessController.doPrivileged(new PrivilegedAction<Object>()
        {
           public Object run()
           {
              Thread.currentThread().setContextClassLoader(cl);
              return null;
           }
        });
     }
docs: Set the thread context class loader
  @param cl The class loader