code: func (actor Actor) UpdateApplicationSettings(pushPlans []PushPlan) ([]PushPlan, Warnings, error) {
  	appNames := actor.getAppNames(pushPlans)
  	applications, getWarnings, err := actor.V7Actor.GetApplicationsByNamesAndSpace(appNames, pushPlans[0].SpaceGUID)
  	warnings := Warnings(getWarnings)
  	if err != nil {
  		log.Errorln("Looking up applications:", err)
  		return nil, warnings, err
  	}
  
  	nameToApp := actor.generateAppNameToApplicationMapping(applications)
  
  	var updatedPushPlans []PushPlan
  	for _, pushPlan := range pushPlans {
  		app := nameToApp[pushPlan.Application.Name]
  		pushPlan.Application.GUID = app.GUID
  		pushPlan.Application.State = app.State
  
  		updatedPushPlans = append(updatedPushPlans, pushPlan)
  	}
  
  	return updatedPushPlans, warnings, err
  }
docs: // UpdateApplicationSettings syncs the Application state and GUID with the API.