XSObjectFactory factory = schema.getXSObjectFactory();
List constraints = new ArrayList(1);
List refKeys = new ArrayList(1);
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 );