* Serializes the {@link CAS} to the given {@link OutputStream} in the XCAS format.
*/
public void serialize(OutputStream out) throws CoreException {
if (DocumentFormat.XCAS.equals(format)) {
XCASSerializer xcasSerializer = new XCASSerializer(mCAS.getTypeSystem());
XMLSerializer xmlSerialzer = new XMLSerializer(out, true);
try {
xcasSerializer.serialize(mCAS, xmlSerialzer.getContentHandler());
} catch (IOException e) {
String message = e.getMessage() != null ? e.getMessage() : "";
IStatus s = new Status(IStatus.ERROR, CasEditorPlugin.ID, IStatus.OK, message, e);