private void addMissingSchemas ( Set < String > missingSchemas ) { if ( missingSchemas . isEmpty ( ) ) { return ; } for ( String className : missingSchemas ) { Class < ? > cls ; try { cls = Class . forName ( className ) ; } catch ( ClassNotFoundException e ) { throw DBLogger . newFatal ( "Invalid field type in schema" , e ) ; } //TODO primary node is not always right here... createSchema ( cache . getSession ( ) . getPrimaryNode ( ) , cls ) ; } }
This method add all schemata that were found missing when checking all known schemata .