// Clone the Registries
Registries clonedRegistries = registries.clone();
// And update references. We may have errors, that may be fixed
// by the new loaded schemas.
errors = clonedRegistries.checkRefInteg();
// Now, relax the cloned Registries if there is no error
clonedRegistries.setRelaxed();
return clonedRegistries;