def METHOD_NAME(self):
    new_instance = self.instance.pk is None
    if new_instance:
        instance = super().METHOD_NAME()  # PK needed for the secrets
        instance.set_report_processor_token(get_random_string(67))
    else:
        instance = super().METHOD_NAME(commit=False)
    if any(self.cleaned_data.get(k) for k in ("rbac_token_auth", "client_certificate_auth")):
        instance.set_rbac_token(self.cleaned_data["rbac_token"])
        instance.set_key(self.cleaned_data["key"])
    instance.METHOD_NAME()
    return instance