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);
cache.cacheIfPossible(request, response, sheet.getWrappedSheet());
}
}
catch (final FailingHttpStatusCodeException e) {
// Got a 404 response or something like that; behave nicely.
LOG.error(e.getMessage());