for (int j = 0; j < agAttributes.length; j++) {
attributes.add(agAttributes[j]);
}
} else if (o instanceof XsTWildcard) {
XSWildcard wildcard = pObject.getXSSchema().getXSObjectFactory().newXSWildcard(pObject, (XsTWildcard) o);
wildcard.validate();
attributes.add(wildcard);
} else {
throw new IllegalStateException("Unknown attribute type: " + o.getClass().getName());
}
}