class RemovePropertyCommand extends AbstractDataModelCommand {

    @Override
    public void execute() {

        if (dataObject != null) {
            ObjectProperty property = dataObject.getProperty(propertyName);
            if (property != null) {
                dataObject.removeProperty(propertyName);
                notifyChange(new DataObjectFieldDeletedEvent(getContext().getContextId(),
                                                             getSource(),
                                                             getDataObject(),
                                                             property));
            }
        }
    }

    public  RemovePropertyCommand(final DataModelerContext context,
                                 final String source,
                                 final DataObject dataObject,
                                 final String propertyName,
                                 final DataModelChangeNotifier notifier);

}