container/src/main/java/com/streamsets/datacollector/util/LambdaUtil.java
public static <T> T withClassLoader(
      ClassLoader classLoader,
      ExceptionSupplier<T> supplier
   ) {
     try {
       return withClassLoaderInternal(classLoader, supplier);
     } catch (Exception e) {
       Throwables.propagate(e);
     }

     return null;
   }
public static <T> T withClassLoader(
      ClassLoader classLoader,
      ExceptionSupplier<T> supplier
   ) {
     try {
       return withClassLoaderInternal(classLoader, supplier);
     } catch (Exception e) {
       Throwables.propagate(e);
     }

     return null;
   }
public static < T > T withClassLoader ( ClassLoader classLoader , ExceptionSupplier < T > supplier ) { try { return withClassLoaderInternal ( classLoader , supplier ) ; } catch ( Exception e ) { Throwables . propagate ( e ) ; } return null ; }
Runs a Supplier within the context of a specified ClassLoader.

@param classLoader the ClassLoader to run the Supplier.
@param supplier the Supplier to run within the context of a specified ClassLoader.
Runs a Supplier within the context of a specified ClassLoader .