/**
   * @param prereqAction the prerequisite for this action
   * @return Returns the rebootAction (if any)
   */
  public Action scheduleRebootAction(Action prereqAction) {

    // All actions must be scheduled against the host server.

    Action rebootAction =
        ActionManager.scheduleRebootAction(
            this.getUser(), this.getHostServer(), this.getScheduleDate());
    log.debug("** Created rebootAction");
    rebootAction.setPrerequisite(prereqAction);
    rebootAction.setEarliestAction(this.getScheduleDate());
    rebootAction.setOrg(this.getUser().getOrg());
    rebootAction.setName(rebootAction.getActionType().getName());
    log.debug("** saving reboot action: " + rebootAction.getName());
    ActionFactory.save(rebootAction);
    log.debug("** Saved rebootAction: " + rebootAction.getId());

    return rebootAction;
  }