hooks.add(new FunctionMasterCheckpointHookFactory((WithMasterCheckpointHook<?>) f));
hooks.add(new FunctionMasterCheckpointHookFactory((WithMasterCheckpointHook<?>) f));
hooks.add(new FunctionMasterCheckpointHookFactory((WithMasterCheckpointHook<?>) f));
hooks.add(new FunctionMasterCheckpointHookFactory((WithMasterCheckpointHook<?>) f));