code: public static void reset(
  		final Collection<MasterTriggerRestoreHook<?>> hooks,
  		final Logger log) throws FlinkException {
  
  		for (MasterTriggerRestoreHook<?> hook : hooks) {
  			final String id = hook.getIdentifier();
  			try {
  				hook.reset();
  			}
  			catch (Throwable t) {
  				ExceptionUtils.rethrowIfFatalErrorOrOOM(t);
  				throw new FlinkException("Error while resetting checkpoint master hook '" + id + '\'', t);
  			}
  		}
  	}
docs: Resets the master hooks.
  
  @param hooks The hooks to reset
  
  @throws FlinkException Thrown, if the hooks throw an exception.