stylesheet = brailleParserFactory.append(sheet, network, null, SourceType.URL, stylesheet, sheet); CSSFactory.registerCSSParserFactory(brailleParserFactory); stylesheet = CSSFactory.getUsedStyles(document, null, baseURL, new MediaSpec(medium), network, stylesheet); CSSFactory.registerCSSParserFactory(printParserFactory); CSSFactory.registerRuleFactory(printRuleFactory); stylesheet = CSSFactory.getUsedStyles(document, null, baseURL, new MediaSpec(medium), network, stylesheet);