otherSchema = context.getSchemaSystem().newSchema( qname.getNamespaceURI() );
}
Particle ref = otherSchema.getParticle( qname.getLocalPart() );
if( ref == null )
{
ref = otherSchema.newAttribute( qname.getLocalPart() );
}
if( completed )
ref.setAttribute( "use", "optional" );
Particle newAttribute = Particle.Factory.newReferenceInstance( schema, ref );
attributes.put( qname, newAttribute );