public function setLanguage(QueryBuilderInterface $query , $userLanguage = '' , $defaultLanguage = \DEFAULT_LANG) {
        $options = $this->getGateway()->getOptions();
        if(!empty($userLanguage)) {
            $options['language'] = $userLanguage;
        }
        $options['defaultLanguage'] = $defaultLanguage;
        
        $this->getGateway()->setOptions($options);
        
        return $query->newQuery();
    }