final ResourceManager resourceManager= new ResourceManager();
resourceManager.registerDefaults();
final Parser parser = CSSParserFactory.getInstance().createCSSParser();
final StyleSheetHandler handler = new StyleSheetHandler();
handler.init (resourceManager, null, 0, StyleKeyRegistry.getRegistry(), null);
parser.setDocumentHandler(handler);
final String selector = ".bordered";
final SelectorList sl =
parser.parseSelectors(new StringInputSource (selector, new URL("http://localhost")));
System.exit(0);