throw new NullPointerException();
}
try
{
final Parser parser = getParser();
synchronized(parser)
{
final StyleSheetHandler handler = new StyleSheetHandler();
setupNamespaces(namespaces, handler);
handler.init
(resourceManager, baseURL, -1, registry, null);
final InputSource source = new InputSource();
source.setCharacterStream(new StringReader(value));
handler.initParseContext(source);
handler.setStyleRule(new CSSStyleRule(null, null));
parser.setDocumentHandler(handler);
final LexicalUnit lu = parser.parsePropertyValue(source);
handler.property(key.getName(), lu, false);
final CSSStyleRule rule = (CSSStyleRule) handler.getStyleRule();
CSSParserContext.getContext().destroy();