if (localXmlReader.get() == null) {
localXmlReader.set(XMLReaderFactory.createXMLReader());
}
XMLReader xmlReader = localXmlReader.get();
Reader reader = new StringReader(anXmlStr);
XmiCasDeserializer deser = new XmiCasDeserializer(aCAS.getTypeSystem());
ContentHandler handler = deser
.getXmiCasHandler(aCAS, aLenient, aSharedData, aMergePoint, allow);
xmlReader.setContentHandler(handler);
xmlReader.parse(new InputSource(reader));
}