}
return cssRuleList;
}
private static Document parseCssToDocument(final Reader reader) throws RecognitionException, IOException {
CssParser parser = new CssParser(new CommonTokenStream(new CssLexer(new ANTLRReaderStream(reader))));
final JdomTreeAdaptor treeAdaptor = new JdomTreeAdaptor(CSS_ROOT_ELEMENT_NAME, CSS_TOKEN_TYPES);
parser.setTreeAdaptor(treeAdaptor);
parser.stylesheet();
return treeAdaptor.getDocument();
}