private function processForm($values)
    {
        $form = $this->getForm($this->record);
        $form->bind($values, $this->record);

        if ($form->isValid()) {
            return $this->record->save();
        }

        $this->form = $form;
        throw new InvalidFormException();
    }