package Ġno . nav . t ms . ut bet aling so vers ik t . api . config Ċ Ċ import Ġno . nav . t ms . token . support . tok end ings . exchange . Tok end ings Service Builder Ċ import Ġno . nav . t ms . ut bet aling so vers ik t . api . health . Health Service Ċ import Ġno . nav . t ms . ut bet aling so vers ik t . api . ut bet aling . U tb et aling Service Ċ import Ġno . nav . t ms . ut bet aling so vers ik t . api . yt else . H oved yt else Service Ċ import Ġno . nav . t ms . ut bet aling so vers ik t . api . yt else . S ok os U tb et aling Consumer Ċ Ċ class ĠApplication Context Ġ{ ĊĊĠĠĠ Ġval Ġenvironment Ġ= ĠEnvironment () ĊĊĠĠĠ Ġval ĠhttpClient Ġ= ĠHttpClient Builder . build () ĊĠĠĠ Ġval Ġhealth Service Ġ= ĠHealth Service ( this ) ĊĊĠĠĠ Ġprivate Ġval Ġtok end ings Service Ġ= ĠTok end ings Service Builder . build Tok end ings Service () ĊĠĠĠ Ġprivate Ġval Ġtok end ings Token Fetcher Ġ= ĠTok end ings Token Fetcher ( tok end ings Service , Ġenvironment . sok os U te bat ling Token x ClientId ) ĊĊĠĠĠ Ġprivate Ġval Ġs ok os U tb et aling Consumer Ġ= ĠS ok os U tb et aling Consumer ( httpClient , Ġtok end ings Token Fetcher , Ġenvironment . sok os U tb et aling Url ) ĊĠĠĠ Ġprivate Ġval Ġh oved yt else Service Ġ= ĠH oved yt else Service ( sok os U tb et aling Consumer ) ĊĠĠĠ Ġval Ġut bet aling Service Ġ= ĠU tb et aling Service ( h oved yt else Service ) Ċ } Ċ