def METHOD_NAME(self):
    name = self.request.form.get("name", None)
    if name is None or name == "":
        IStatusMessage(self.request).addStatusMessage(
            _("Name can not be empty."), "error"
        )
        return
    bundles = self._bundles
    if name in bundles:
        IStatusMessage(self.request).addStatusMessage(
            _("Record ${name} already exists.", mapping=dict(name=name)), "error"
        )
        return
    record = bundles.add(name)
    self._set_data_from_form(record)
    IStatusMessage(self.request).addStatusMessage(
        _("Record ${name} created.", mapping=dict(name=name)), "info"
    )