public static function isAssessmentSectionAdaptive(AssessmentSection $section, $namespace = '')
    {
        if ($namespace === '') {
            $namespace = CatService::QTI_2X_ADAPTIVE_XML_NAMESPACE;
        }
        
        $isAdaptive = false;
        
        if (($selection = $section->getSelection()) !== null && (($xmlExtension = $selection->getXml())) !== null)
        {
            $xpath = new \DOMXPath($xmlExtension);
            $xpath->registerNamespace('ais', $namespace);
            
            if ($xpath->query('.//ais:adaptiveItemSelection', $xmlExtension)->length > 0) {
                $isAdaptive = true;
            }
        }
        
        return $isAdaptive;
    }