*/
private XmlSchemaSimpleType handleEnumeration(String name, String[] enums) {
XmlSchemaSimpleTypeRestriction simpleTypeRestriction = new XmlSchemaSimpleTypeRestriction();
// Set the base type to string. 95% of the time enumerations are strings so use it.
simpleTypeRestriction.setBaseTypeName(Constants.XSD_STRING);
XmlSchemaSimpleType simpleType = new XmlSchemaSimpleType(xmlSchema);
simpleType.setName(name);
simpleType.setContent(simpleTypeRestriction);
// Create enumeration facets for each value
for (int i = 0; i < enums.length; i++) {
String enumeration = enums[i].trim();