public static Context getOrCreate ( NetworkParameters params ) { Context context ; try { context = get ( ) ; } catch ( IllegalStateException e ) { log . warn ( "Implicitly creating context. This is a migration step and this message will eventually go away." ) ; context = new Context ( params ) ; return context ; } if ( context . getParams ( ) != params ) throw new IllegalStateException ( "Context does not match implicit network params: " + context . getParams ( ) + " vs " + params ) ; return context ; }
A temporary internal shim designed to help us migrate internally in a way that doesn t wreck source compatibility .