function afterSave(array &$values, User $record)
 {
     $record->setGroups(array_filter((array) @$values['_groups']));
     $event = new Am_Event_UserForm(Am_Event_UserForm::AFTER_SAVE, $this->grid->getForm(), $record, $values);
     $event->run();
     $values = $event->getValues();
     //        if ($this->grid->hasPermission(null, 'edit'))
     //        {
     //            $this->redirectLocation($this->getView()->userUrl($record->pk()));
     //            exit();
     //        }
 }