// Load the schema here and check that it is ok!
// --------------------------------------------------------------------
BootstrapRegistries bootstrapRegistries = new BootstrapRegistries();
BootstrapSchemaLoader loader = new BootstrapSchemaLoader();
String[] schemas = DEFAULT_SCHEMAS;
if ( initialEnv.containsKey( EnvKeys.SCHEMAS ) )
{
String schemaList = ( String ) initialEnv.get( EnvKeys.SCHEMAS );
schemaList = StringTools.deepTrim( schemaList );
schemas = schemaList.split( " " );
for ( int ii = 0; ii < schemas.length; ii++ )
{
schemas[ii] = schemas[ii].trim();
}
}
loader.load( schemas, bootstrapRegistries );
List errors = bootstrapRegistries.checkRefInteg();
if ( !errors.isEmpty() )
{