if (encoding != null)
xmlSer.setOutputProperty(OutputKeys.ENCODING, encoding);
XmiCasSerializer ser = new XmiCasSerializer(typeSystem);
ser.serialize(aCAS, xmlSer.getContentHandler());
// ser.serialize(aCAS, xmlSer.getContentHandler(),false, otsd);
}
/**
* Utility method for serializing a CAS to an XMI String