private OverrideRepository buildOverrideRepository() {
if(settings==null) {
StandardServiceRegistryBuilder builder = new StandardServiceRegistryBuilder();
ServiceRegistry serviceRegistry = builder.build();
settings = new SettingsFactory() {
// trick to get hibernate.properties settings for defaultschema/catalog in here
}.buildSettings(Environment.getProperties(), serviceRegistry);
}
//return new OverrideRepository(settings.getDefaultCatalogName(),settings.getDefaultSchemaName());
return new OverrideRepository();