private FModel loadModel(String filename,String cwd){
  String fn=filename;
  if (fn == null)   return null;
  if (!fn.endsWith("." + FRANCA_FILE_EXTENSION)) {
    fn+="." + FRANCA_FILE_EXTENSION;
  }
  ModelPersistenceHandler persistenceHandler=createModelPersistenceHandler(resourceSetProvider.get());
  return (FModel)persistenceHandler.loadModel(fn,cwd);
}

private FModel loadModel ( String filename , String cwd ) { String fn = filename ; if ( fn == null ) return null ; if ( ! fn . endsWith ( "." + FRANCA_FILE_EXTENSION ) ) { fn += "." + FRANCA_FILE_EXTENSION ; } ModelPersistenceHandler persistenceHandler = createModelPersistenceHandler ( resourceSetProvider . get ( ) ) ; return ( FModel ) persistenceHandler . loadModel ( fn , cwd ) ; }
load franca idl model file ( * . fidl ) and all imported files recursively .
