public static Document parse ( InputStream is, Saaj saaj )
throws XmlException, IOException
{
Locale l = newLocale( saaj );
Dom d;
if (l.noSync()) { l.enter(); try { d = l.load( is ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { d = l.load( is ); } finally { l.exit(); } }
return (Document) d;