code: public AbstractCSSRuleImpl parseRule(final String rule) throws IOException {
          try (InputSource source = new InputSource(new StringReader(rule))) {
              final CSSOMHandler handler = new CSSOMHandler();
              parser_.setDocumentHandler(handler);
              parser_.parseRule(source);
              return (AbstractCSSRuleImpl) handler.getRoot();
          }
      }
docs: Parses a string into a CSSRule.
  
  @param rule the input string
  @return the css rule
  @throws IOException if the underlying SAC parser throws an IOException