final Cache cache = getWindow().getWebWindow().getWebClient().getCache();
final CSSStyleSheet cached = cache.getCachedStyleSheet(css);
final String uri = getDomNodeOrDie().getPage().getWebResponse().getRequestSettings()
.getUrl().toExternalForm();
if (cached != null) {
sheet_ = new Stylesheet(this, cached, uri);
}
else {
final InputSource source = new InputSource(new StringReader(css));
sheet_ = new Stylesheet(this, source, uri);
cache.cache(css, sheet_.getWrappedSheet());
}
return sheet_;
}