}
params.add(scriptable);
} else if (schemaType instanceof XmlSchemaSimpleType) {
// Handle enumerations in here.
XmlSchemaSimpleType xmlSchemaSimpleType = (XmlSchemaSimpleType) schemaType;
XmlSchemaSimpleTypeContent content = xmlSchemaSimpleType.getContent();
if (content instanceof XmlSchemaSimpleTypeRestriction) {
// We only support restriction on xs:string.
XmlSchemaSimpleTypeRestriction simpleTypeRestriction =
(XmlSchemaSimpleTypeRestriction) content;
String elementName = innerElement.getName();