public function type_ahead() {
        if ($response = $this->overrideAction('type_ahead')) {
            return;
        }

        $this->viewClass = 'Json';
        $this->layout = 'ajax';

        if (empty($this->request->query['term'])) {
            throw new BadRequestException(__d('admin', 'Missing Query'));
        }

        $this->set('results', $this->AdminToolbar->searchTypeAhead($this->Model, $this->request->query));
        $this->set('_serialize', 'results');
    }