new XMLInputSource(typeSystemFile));
//add an example type to test FSArrays with and without elementTypes
TypeDescription type = tsDesc.addType("example.TestType", "", "uima.tcas.Annotation");
type.addFeature("testFeat", "", "uima.cas.FSArray","uima.tcas.Annotation", null);
TypeDescription type2 = tsDesc.addType("example.TestType2", "", "uima.tcas.Annotation");
type2.addFeature("testFeat", "", "uima.cas.FSArray");
CAS cas = CasCreationUtils.createCas(tsDesc, null, null);
//convert that CAS's type system back to a TypeSystemDescription