protected void loadSchemas(File[] files){
  for (  File file : files) {
    FileReader fileReader=null;
    BufferedReader reader=null;
    try {
      fileReader=new FileReader(file);
      reader=new BufferedReader(fileReader);
      loadSchemaFromReader(reader);
    }
 catch (    IOException exception) {
      log.warn("Exception occurred during reading the schema file.",exception);
    }
 finally {
      try {
        if (reader != null) {
          reader.close();
        }
        if (fileReader != null) {
          fileReader.close();
        }
      }
 catch (      IOException exception) {
        log.warn("Exception occurred trying to close the schema file,",exception);
      }
    }
  }
}

protected void loadSchemas ( File [ ] files ) { for ( File file : files ) { FileReader fileReader = null ; BufferedReader reader = null ; try { fileReader = new FileReader ( file ) ; reader = new BufferedReader ( fileReader ) ; loadSchemaFromReader ( reader ) ; } catch ( IOException exception ) { log . warn ( "Exception occurred during reading the schema file." , exception ) ; } finally { try { if ( reader != null ) { reader . close ( ) ; } if ( fileReader != null ) { fileReader . close ( ) ; } } catch ( IOException exception ) { log . warn ( "Exception occurred trying to close the schema file," , exception ) ; } } } }
load schemas from schemas files .
