java.io.Reader reader;
java.io.InputStream stream;
    private List getStylesheets() {        java.io.Reader reader;        List infos = new LinkedList();        long st = System.currentTimeMillis();        String uri = _nsh.getNamespace();        StylesheetInfo info = new StylesheetInfo();        info.setUri(_nsh.getNamespace());        info.setOrigin(StylesheetInfo.USER_AGENT);        info.setMedia("all");        info.setType("text/css");        if (!_stylesheetFactory.containsStylesheet(uri)) {            reader = _nsh.getDefaultStylesheet();            if (reader != null) {                Stylesheet sheet = _stylesheetFactory.parse(reader, info);                _stylesheetFactory.putStylesheet(uri, sheet);            }        }        infos.add(info);        StylesheetInfo[] refs = _nsh.getStylesheetLinks(_doc);        if (refs != null) {            for (int i = 0; i < refs.length; i++) {                uri = _uac.resolveURI(refs[i].getUri());                refs[i].setUri(uri);            }        }        infos.addAll(Arrays.asList(refs));        uri = _uac.getBaseURL();        info = new StylesheetInfo();        info.setUri(uri);        info.setOrigin(StylesheetInfo.AUTHOR);        Stylesheet sheet = null;        if (_stylesheetFactory.containsStylesheet(uri)) {            sheet = _stylesheetFactory.getCachedStylesheet(uri);        } else {            InlineStyleInfo[] inlineStyle = _nsh.getInlineStyle(_doc);            sheet = _stylesheetFactory.parseInlines(inlineStyle, info);            _stylesheetFactory.putStylesheet(uri, sheet);        }        info.setStylesheet(sheet);//add it here because matcher cannot look it up, uri:s are in a twist        infos.add(info);        // TODO: here we should also get user stylesheet from userAgent        long el = System.currentTimeMillis() - st;        XRLog.load("TIME: parse stylesheets  " + el + "ms");        return infos;    }