}
for (XSDAttribute attribute : type.getAttributeDeclarations()) {
createScalar(attribute, structDef);
}
XSDGroup group = type.getTypeGroup();
if (group != null) {
createScalar(group, structDef);
}
else {
final XSDNode[] elements = type.getElementSet();