enumType.setAllowedValues(new AllowedValue[] { new AllowedValue_impl("One", "First Value"),
new AllowedValue_impl("Two", "Second Value") });
desc.getAnalysisEngineMetaData().setTypeSystem(typeSystem);
TypePriorities typePriorities = new TypePriorities_impl();
TypePriorityList priorityList = typePriorities.addPriorityList();
priorityList.addType("Type1");
priorityList.addType("Type2");
desc.getAnalysisEngineMetaData().setTypePriorities(typePriorities);
FsIndexDescription index1 = new FsIndexDescription_impl();
index1.setLabel("Index1");
index1.setTypeName("Type1");