public void startMedia(SACMediaList media) throws CSSException {
MediaListImpl ml = new MediaListImpl(media);
this.addLocator(ml);
// Create the media rule and add it to the rule list
CSSMediaRuleImpl mr = new CSSMediaRuleImpl(
CSSOMParser.this.getParentStyleSheet(),
this.getParentRule(),
ml);
this.addLocator(mr);
if (!this._nodeStack.empty()) {
((CSSRuleListImpl)this._nodeStack.peek()).add(mr);
}
// Create the rule list
CSSRuleListImpl rules = new CSSRuleListImpl();
mr.setRuleList(rules);
this._nodeStack.push(mr);
this._nodeStack.push(rules);
}