final String styleText = (String) styleValue;
try
{
final LayoutProcess layoutProcess = getLayoutProcess();
final byte[] bytes = styleText.getBytes("UTF-8");
final ResourceKey baseKey =
DocumentContextUtility.getBaseResource
(layoutProcess.getDocumentContext());
final ResourceManager manager = layoutProcess.getResourceManager();
final ResourceKey key = manager.createKey(bytes);
final Resource resource = manager.create(key, baseKey, StyleRule.class);
final CSSDeclarationRule rule =
(CSSDeclarationRule) resource.getResource();
if (rule != null)