if (documentID == null) {
throw new IllegalArgumentException("No documentID for CAS:\n" + jCas);
}
File outFile = new File(this.outputDirectory, documentID + ".xmi");
ContentHandler handler = new XMLSerializer(new FileOutputStream(outFile)).getContentHandler();
new XmiCasSerializer(jCas.getTypeSystem()).serialize(jCas.getCas(), handler);
} catch (CASRuntimeException e) {
throw new AnalysisEngineProcessException(e);
} catch (SAXException e) {
throw new AnalysisEngineProcessException(e);
} catch (FileNotFoundException e) {