if (otherSchema == null) {
otherSchema = context.getSchemaSystem().newSchema(item.getNamespaceURI());
}
Particle ref = otherSchema.getParticle(item.getLocalPart());
if (ref == null) {
ref = otherSchema.newElement(item.getLocalPart());
}
if (completed) {
ref.setAttribute("minOccurs", "0");
}
particles.put(item, Particle.Factory.newReferenceInstance(schema, ref));