}
if (xsAnnotation == null) {
annotations = new XSAnnotation[0];
} else {
XSAnnotation result = getXSSchema().getXSObjectFactory().newXSAnnotation(this, xsAnnotation);
result.validate();
annotations = new XSAnnotation[]{result};
}
if (modelGroup == null) {
XsQName myName = getName();