ParserConfigurationException, SAXException {
category.setLevel(Level.ALL);
DOMThemeGenerator generator = new DefaultDOMThemeGenerator();
RuleBuilderFactory ruleBuilderFactory = new RuleBuilderFactory();
StylesClassRuleExtractorFactory stylesClassRuleExtractorFactory =
new StylesClassRuleExtractorFactoryImpl(ruleBuilderFactory);
RuleExtractor classRuleExtractor = new ClassRuleExtractor(
stylesClassRuleExtractorFactory);
generator.addRuleExtractor(classRuleExtractor);