// Serialize CasData to XCAS
// Would be nice to serialize straight to parent frame frame, but we have
// to change the tag name to KEYS to satisfy the TAE interface
// spec - sigh.
AFrame xcasHolder = new AFrame();
SaxVinciFrameBuilder vinciFrameBuilder = new SaxVinciFrameBuilder();
vinciFrameBuilder.setParentFrame(xcasHolder);
CasDataToXCas xcasGenerator = new CasDataToXCas();
xcasGenerator.setDocumentTextTypeName(mCasDataDocTextType);
xcasGenerator.setDocumentTextFeatureName(mCasDataDocTextFeature);
xcasGenerator.setXCasDocumentTextTagName(mXCasDocTextTag);
xcasGenerator.setIncludeAnnotationSpannedText(mIncludeAnnotationSpannedText);