String nodeGroupType, String agentCommand, String replaceVarKey,
String replaceVarValue, Map<String, NodeGroupDataMap> dataStore,
Map<String, NodeGroupSourceMetadata> nodeGrupStore,
VarUtils.VAR_REPLACEMENT_TYPE varReplacementType) {
NodeGroupDataMap ngdm = dataStore.get(nodeGroupType);
/**
* From Valid NodeDataMap; and only update the valid data
*/
for (Entry<String, NodeData> entry : ngdm.getNodeDataMapValid()
.entrySet()) {
NodeData nodeData = entry.getValue();
if (nodeData.getDataMap().containsKey(agentCommand)) {