private Stage createServerActionStage(long id, Cluster cluster, long requestId,
                                          String requestContext,
                                          String commandParams, String hostParams,
                                          Class<? extends ServerAction> actionClass,
                                          ServiceComponentHostServerActionEvent event,
                                          Map<String, String> commandParameters, String commandDetail,
                                          Integer timeout) throws AmbariException {

      Stage stage = createNewStage(id, cluster, requestId, requestContext, commandParams, hostParams);
      stage.addServerActionCommand(actionClass.getName(), null, Role.AMBARI_SERVER_ACTION,
        RoleCommand.EXECUTE, cluster.getClusterName(), event, commandParameters, commandDetail,
        ambariManagementController.findConfigurationTagsWithOverrides(cluster, null, null), timeout,
          retryAllowed, false);

      return stage;
    }
Creates a new stage with a single task describing the ServerAction class to invoke and the other
task-related information.

@param id                the new stage's id
@param cluster           the relevant Cluster
@param requestId         the relevant request Id
@param requestContext    a String describing the stage
@param commandParams     JSON-encoded command parameters
@param hostParams        JSON-encoded host parameters
@param actionClass       The ServeAction class that implements the action to invoke
@param event             The relevant ServiceComponentHostServerActionEvent
@param commandParameters a Map of command parameters to attach to the task added to the new
                         stage
@param commandDetail     a String declaring a descriptive name to pass to the action - null or an
                         empty string indicates no value is to be set
@param timeout           the timeout for the task/action  @return a newly created Stage
ambari-server/src/main/java/org/apache/ambari/server/controller/KerberosHelperImpl.java