question: public void init ( MyPerfContext ctx ) { logger . info ( "Read configuration ..." ) ; configured = false ; File cfgFile = null ; myperfConfigPath = System . getProperty ( MYPERF_CONFIG_PATH_PROP_NAME ) ; if ( myperfConfigPath == null || myperfConfigPath . isEmpty ( ) ) { File cfgDir = new File ( new File ( ROOTPATH ) , STORAGE_DIR ) ; if ( ! cfgDir . exists ( ) ) cfgDir . mkdirs ( ) ; cfgFile = new File ( cfgDir , MYPERF_CONFIG_FILE_NAME ) ; myperfConfigPath = cfgFile . getAbsolutePath ( ) ; } else cfgFile = new File ( myperfConfigPath ) ; if ( ! cfgFile . exists ( ) ) { logger . info ( "Cannot find configuration file " + cfgFile . getAbsolutePath ( ) + ". The system might not havde been configured yet." ) ; return ; } logger . info ( "Read configuration from file " + cfgFile . getAbsolutePath ( ) ) ; if ( readConfig ( cfgFile , ctx ) ) { configured = true ; } logger . info ( "Done read configuration from file " + cfgFile . getAbsolutePath ( ) + ", configured=" + configured ) ; }
target:  Read configurations. It should be invoked after meta db and user data are loaded, but before scanner initialized