public void addExecutionCommandsToStage(final ActionExecutionContext actionContext, Stage stage,
                                          Map<String, String> requestParams) throws AmbariException {
    addExecutionCommandsToStage(actionContext, stage, requestParams, true);
  }
Add tasks to the stage based on the requested action execution
@param actionContext  the context associated with the action
@param stage          stage into which tasks must be inserted
@param requestParams  all request parameters (may be null)
@throws AmbariException if the task can not be added
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariActionExecutionHelper.java