List<MutablePropertyExpansion> properties = new ArrayList<MutablePropertyExpansion>();
PropertyExpansion[] propertyExpansions = PropertyExpansionUtils.getPropertyExpansions(getTestCase(), true,
true);
for (PropertyExpansion pe : propertyExpansions) {
MutablePropertyExpansion mpe = (MutablePropertyExpansion) pe;
ModelItem modelItem = mpe.getProperty().getModelItem();
if (modelItem == this
|| ((modelItem instanceof WsdlTestRequest && ((WsdlTestRequest) modelItem).getTestStep() == this))) {
properties.add(mpe);
}
}
String oldLabel = getLabel();
super.setName(name);
String label = getLabel();
if (!oldLabel.equals(label)) {
notifyPropertyChanged(LABEL_PROPERTY, oldLabel, label);
}
for (MutablePropertyExpansion mpe : properties) {
try {
mpe.update();
result.add(mpe);
} catch (Exception e) {
e.printStackTrace();
}
}