public < R > R wrapClassLoader ( Supplier < R > supplier ) { try ( TemporaryClassLoaderContext tmpCl = new TemporaryClassLoaderContext ( classLoader ) ) { return supplier . get ( ) ; } }
Executes the given supplier using the execution context s classloader as thread classloader .