You added this class attribute, but it seems it's not used.
IMHO you could replace all ``model->getOptionsModel()`` calls by optionsModel.