protected function getResultData(ViewableData $record, $selected = false)
    {
        return [
            'id' => $record->{$this->getIDField()},
            'text' => $record->{$this->getTextField()},
            'formattedResult' => $this->getFormattedResult($record),
            'formattedSelection' => $this->getFormattedSelection($record),
            'selected' => $selected
        ];
    }