public function loadRequirements()
    {
        // Load Required Themed JavaScript:
        
        if (ContentController::config()->load_themed_js) {
            
            foreach ($this->getRequiredThemedJS() as $js) {
                Requirements::themedJavascript($js);
            }
            
        }
        
        // Load Required Themed CSS:
        
        if (ContentController::config()->load_themed_css) {
            
            foreach ($this->getRequiredThemedCSS() as $css => $media) {
                Requirements::themedCSS($css, $media);
            }
            
        }
        
        // Load Required JavaScript:
        
        if (ContentController::config()->load_js) {
            
            foreach ($this->getRequiredJS() as $js) {
                Requirements::javascript($js);
            }
            
        }
        
        // Load Required CSS:
        
        if (ContentController::config()->load_css) {
            
            foreach ($this->getRequiredCSS() as $css => $media) {
                Requirements::css($css, $media);
            }
            
        }
        
        // Load Required Custom CSS:
        
        if (ContentController::config()->load_custom_css) {
            
            if ($css = $this->getCustomCSSAsString()) {
                Requirements::customCSS($css, $this->HTMLID);
            }
            
        }
        
        // Load Required JavaScript Templates:
        
        foreach ($this->getRequiredJSTemplates() as $file => $params) {
            ViewTools::singleton()->loadJSTemplate($file, $params['vars'], $params['id']);
        }
    }