*/
public CasData casContainerToCasData(CAS aContainer) {
// generate XCAS events and pipe them to XCasToCasDataSaxHandler
CasData result = new CasDataImpl();
XCasToCasDataSaxHandler handler = new XCasToCasDataSaxHandler(result);
XCASSerializer xcasSer = new XCASSerializer(aContainer.getTypeSystem());
xcasSer.setDocumentTypeName(this.getDocumentTextTypeName());
xcasSer.setDocumentTextFeature(this.getDocumentTextFeatureName());
try {
xcasSer.serialize(aContainer, handler);
} catch (IOException e) {
throw new UIMARuntimeException(e);
} catch (SAXException e) {
throw new UIMARuntimeException(e);
}