// create two Type System description objects
TypeSystemDescription tsd1 = new TypeSystemDescription_impl();
TypeDescription supertype = tsd1.addType("test.Super", "", "uima.tcas.Annotation");
supertype.addFeature("testfeat", "", "uima.cas.Integer");
TypeDescription subtype = tsd1.addType("test.Sub", "", "test.Super");
subtype.addFeature("testfeat", "", "uima.cas.Integer");
TypeSystemDescription tsd2 = new TypeSystemDescription_impl();
TypeDescription fooType = tsd1.addType("test.Foo", "", "uima.cas.TOP");
fooType.addFeature("bar", "", "uima.cas.String");