/**
 * Method to get the model object
 *
 * @param   string  $name  The name of the model (optional)
 *
 * @return  BaseDatabaseModel  The model object
 *
 * @since   3.0
 */
public function getModel($name = null)
{
    if ($name === null) {
        $name = $this->_defaultModel;
    }
    return $this->_models[strtolower($name)];
}