code: public static <T> MasterTriggerRestoreHook<T> wrapHook(
  			MasterTriggerRestoreHook<T> hook,
  			ClassLoader userClassLoader) {
  
  		return new WrappedMasterHook<>(hook, userClassLoader);
  	}
docs: Wraps a hook such that the user-code classloader is applied when the hook is invoked.
  @param hook the hook to wrap
  @param userClassLoader the classloader to use