HttpServletResponse response,
Runner runner,
DeploymentEntry de)
throws ServletException, IOException
{
DeploymentManager dm = DeploymentManager.getInstance();
DeploymentPlan dp = dm.getPlan();
// if any property is the same as the default property,
// remove it so it will change as the default changes
for (String propName : de.getProperties().stringPropertyNames()) {
String runVal = de.getProperties().getProperty(propName);
String defVal = runner.getDefaultProperties().getProperty(propName);
if (runVal.equals(defVal)) {
de.getProperties().remove(propName);
}
}
// replace the existing entry with the new one
dp.removeEntry(de);
dp.addEntry(de);
dm.savePlan();
redirectToRun(response);
}