/**
  * Applies the changes made to the edited value into the model. If the {@link #property} is
  * <code>null</code>, a new <code>PropertyAdater</code> will be created, otherwise it will be
  * updated.
  */
 void apply() {
   if (propertyAdapter == null) {
     Property property = (Property) subject();
     propertyAdapter = property.addProperty(name, value);
   } else {
     propertyAdapter.setName(name);
     propertyAdapter.setValue(value);
   }
 }