private Map<String, String> getNewParameterMap(RequestStageContainer requestStageContainer,
      UpgradeContext context) {
    Map<String, String> parameters = context.getInitializedCommandParameters();
    parameters.put(UpgradeContext.COMMAND_PARAM_REQUEST_ID,
        String.valueOf(requestStageContainer.getId()));
    return parameters;
  }
Gets a map initialized with parameters required for upgrades to work. The
following properties are already set:
<ul>
<li>{@link UpgradeContext#COMMAND_PARAM_CLUSTER_NAME}
<li>{@link UpgradeContext#COMMAND_PARAM_DIRECTION}
<li>{@link UpgradeContext#COMMAND_PARAM_UPGRADE_TYPE}
<li>{@link KeyNames#REFRESH_CONFIG_TAGS_BEFORE_EXECUTION} - necessary in
order to have the commands contain the correct configurations. Otherwise,
they will contain the configurations that were available at the time the
command was created. For upgrades, this is problematic since the commands
are all created ahead of time, but the upgrade may change configs as part
of the upgrade pack.</li>
<li>{@link UpgradeContext#COMMAND_PARAM_REQUEST_ID}</li> the ID of the request.
<ul>

@return the initialized parameter map.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java