if (match && (!matches.contains(schemaName))) matches.add(schemaName);
}
}
if (matches.size() > 1) {
throw new SchemaMatchConflictException("Metadata record with "+md.getName()+" (Namespace "+md.getNamespace()+" matches more than one schema - namely: "+matches.toString()+" - during schema autodetection mode "+mode);
} else if (matches.size() == 1) {
returnVal = matches.get(0);
}
return returnVal;