public function setScriptInclude($file, $namespace = null)
    {
        if ($file instanceof ScriptInclude) {
            $scriptInclude = $file;
        } else {
            $scriptInclude = new ScriptInclude($file, $namespace);
        }
        $this->includes[$scriptInclude->getNamespace()] = $scriptInclude;
        return $this;
    }