org.jibx.schema.validation.ValidationContext vctx = new org.jibx.schema.validation.ValidationContext();
for (int i = 0; i < holders.size(); i++) {
SchemaHolder holder = (SchemaHolder)holders.get(i);
String id = holder.getFileName();
SchemaElement schema = holder.getSchema();
schema.setResolver(new MemoryResolver(id));
vctx.setSchema(id, schema);
}
for (Iterator iter = exists.iterator(); iter.hasNext();) {
SchemaElement schema = (SchemaElement)iter.next();
vctx.setSchema(schema.getResolver().getName(), schema);