code: @Override
      public void addHook(TrainingHook trainingHook) {
          if (trainingHookList == null) {
              trainingHookList = new ArrayList<>();
          }
          trainingHookList.add(trainingHook);
      }
docs: Add a hook for the master for pre and post training
  
  @param trainingHook the training hook to add