for (Object builderObject : builders) {
VariantBuilder builder = (VariantBuilder) builderObject;
if (builder.getVariantType() == VariantType.THEME) {
ContentBuilder variantContent =
builder.getContentBuilder();
InternalThemeContentBuilder themeContent =
(InternalThemeContentBuilder) variantContent;
if (themeContent.getStyleSheet() instanceof CSSStyleSheet) {
StyleSheet parsedStyleSheet =
STYLE_SHEET_FACTORY.createStyleSheet(
(CSSStyleSheet)
themeContent.getStyleSheet());
parsedStyleSheet.setSourceFormat(
StyleSheetSourceFormat.CSS);
themeContent.setStyleSheet(parsedStyleSheet);
containsCSS = true;
}
}
}
if (containsCSS) {