sheet = new Stylesheet(element, (CSSStyleSheet) fromCache, uri);
}
else {
final WebResponse response = client.loadWebResponse(request);
uri = response.getRequestSettings().getUrl().toExternalForm();
client.printContentIfNecessary(response);
client.throwFailingHttpStatusCodeExceptionIfNecessary(response);
// CSS content must have downloaded OK; go ahead and build the corresponding stylesheet.
final String css = response.getContentAsString();
final InputSource source = new InputSource(new StringReader(css));
sheet = new Stylesheet(element, source, uri);