/** Serialize a stylesheet to a Writer. */
public void serialize(CssTree.StyleSheet styleSheet, Writer writer) {
CssPrettyPrinter cssPrinter = new CssPrettyPrinter(writer, null);
styleSheet.render(new RenderContext(new MessageContext(), cssPrinter));
cssPrinter.noMoreTokens();
}
private boolean shouldCache() {
return parsedCssCache != null && parsedCssCache.getCapacity() != 0;
}