private function handleSubmit($buttons)
    {
        $inputProvider = $this->environment->getInputProvider();
        foreach (array_keys($buttons) as $button) {
            if ($inputProvider->hasValue($button)) {
                $event = new HandleSubmitEvent($this->environment, $this->model, $button);

                $this->dispatcher->dispatch(DcGeneralFrontendEvents::HANDLE_SUBMIT, $event);

                break;
            }
        }
    }