.addFile( new File(getOutputDir(), "MultiPerson.hbm.xml"))
.addFile( new File(getOutputDir(), "Middle.hbm.xml"))
.addFile( new File(getOutputDir(), "Left.hbm.xml"))
.addFile( new File(getOutputDir(), "Right.hbm.xml"));
configuration.buildMappings();
StandardServiceRegistryBuilder builder = new StandardServiceRegistryBuilder();
builder.applySettings(configuration.getProperties());
new SchemaValidator(builder.build(), configuration).validate();
} finally {
Thread.currentThread().setContextClassLoader(oldLoader);