for ( int i=0; i<numRawConstraints; i++ ) {
XsTIdentityConstraint raw = rawConstraints[i];
if ( raw instanceof XsEKeyref ) {
XSKeyRef keyRef = factory.newXSKeyRef( this, (XsEKeyref) raw );
refKeys.add( keyRef );
schema.add( keyRef );
} else if ( raw instanceof XsEKey ) {
XSIdentityConstraint ic = factory.newXSIdentityConstraint(