private void readRemoteConfig ( URL remoteConfig , URL fallbackConfig , boolean cacheRemoteConfig , String cacheFileName ) throws IOException { // Check if offline cache exists checkForOfflineCacheOrLoadFallback ( fallbackConfig , cacheFileName ) ; if ( ! isOfflineMode ( ) ) getRemoteConfig ( remoteConfig , cacheRemoteConfig , cacheFileName ) ; }
Reads the config from the remote url synchronously . If this fails for any reason and a cached config is available the cached config is used instead . If the remote config can t be read and no cached version is available the fallbackConfig is used .