Type stringType = aTypeSystem.getType("uima.cas.String");
if (aTypeSystem.subsumes(stringType, aType)) {
String[] allowedValues = getAllowedValuesForType(aType, aTypeSystem);
AllowedValue[] avObjs = new AllowedValue[allowedValues.length];
for (int i = 0; i < allowedValues.length; i++) {
AllowedValue av = UIMAFramework.getResourceSpecifierFactory().createAllowedValue();
av.setString(allowedValues[i]);
avObjs[i] = av;
}
typeDesc.setAllowedValues(avObjs);
} else {
ArrayList<FeatureDescription> featDescs = new ArrayList<FeatureDescription>();