public JSONResult getConfig ( ) { if ( attempts == 0 ) { try { resolve ( ) ; } catch ( Exception e ) { // discard exception } } if ( config == null ) { logger . info ( "{} => no response" , url ) ; return null ; } logger . info ( "{} => {}" , url , config . get ( "FireREST" ) . getString ( ) ) ; return config ; }
Return the cached service configuration resolving the service if required .