public static StyleRuleMatcher getStyleRuleMatcher(final DocumentContext context)
{
final Object o = context.getMetaAttribute(DocumentContext.STYLE_MATCHER_ATTR);
if (o instanceof StyleRuleMatcher == false)
{
final StyleRuleMatcher value = new SimpleStyleRuleMatcher();
context.setMetaAttribute(DocumentContext.STYLE_MATCHER_ATTR, value);
return value;
}
return (StyleRuleMatcher) o;
}