code: function getHook(className, hookType) {
    if (hooks[className] && hooks[className][hookType]) {
      return hooks[className][hookType];
    }
    return undefined;
  }
docs: Retrieves a previously registered hook.
  
  @param {string} className The name of the class to get the hook on.
  @param {string} hookType One of 'beforeSave', 'afterSave', 'beforeDelete', 'afterDelete'