@classmethod
def create_model_dialog(cls, parent, **kwargs):
    """Open a dialog to create a new model.

        All keyword arguments are passed to the model dialog class constructor.
        """
    dialog = cls.new_model_dialog_class(**kwargs)
    dialog_ui = dialog.edit_traits(kind='livemodal', parent=parent)
    if dialog_ui.result:
        model = cls._create_model_from_dialog(dialog)
        return model
    else:
        return None
