StylingFactory stylingFactory = StylingFactory.getDefaultInstance();
CompilerConfiguration configuration =
stylingFactory.createCompilerConfiguration();
configuration.setSource(StyleSheetSource.THEME);
configuration.addFunctionResolver(StylingFunctions.getResolver());
StyleSheetCompiler compiler = stylingFactory.createStyleSheetCompiler(
configuration);
CompiledStyleSheet compiledStyleSheet = compiler.compileStyleSheet(null);
DeviceLayoutContext deviceLayoutContext =
new TestDeviceLayoutContext(pageContext);
deviceLayoutContext.setMarinerPageContext(pageContext);
RuntimeDeviceLayout runtimeDeviceLayout = new RuntimeLayoutAdapter(