StyleSheet styleSheet = builder.build(layout);
// String css = StyleSheetTester.renderStyleSheet(styleSheet);
// System.out.println("CSS\n" + css);
StylingFactory stylingFactory = StylingFactory.getDefaultInstance();
CompilerConfiguration configuration =
stylingFactory.createCompilerConfiguration();
configuration.setSource(StyleSheetSource.LAYOUT);
StyleSheetCompiler compiler = stylingFactory.createStyleSheetCompiler(
configuration);
CompiledStyleSheet compiledStyleSheet = compiler.compileStyleSheet(
styleSheet);
StylingEngine stylingEngine = stylingFactory.createStylingEngine();
stylingEngine.pushStyleSheet(compiledStyleSheet);
FormatStylingEngine formatStylingEngine =
new FormatStylingEngineImpl(stylingEngine);