}
String type = attributes.get("type");
if (type == null) {
throw new Exception("[type] attribute is a required attribute");
}
OccursEnum occures = OccursEnum.optional;
if (attributes.get("occurs") != null) {
occures = OccursEnum.valueOf(attributes.get("occurs"));
}
Element element = new Element(name, type, occures);
parent.addElement(element);