*/
private CSSStyleSheet parseCSS(final InputSource source) {
CSSStyleSheet ss;
try {
final ErrorHandler errorHandler = getWindow().getWebWindow().getWebClient().getCssErrorHandler();
final CSSOMParser parser = new CSSOMParser(new SACParserCSS21());
parser.setErrorHandler(errorHandler);
ss = parser.parseStyleSheet(source, null, null);
}
catch (final Exception e) {
LOG.error("Error parsing CSS from '" + toString(source) + "': " + e.getMessage(), e);
ss = new CSSStyleSheetImpl();
}