Fix Kos client to support non spring enviroment

note:old version supported also non spring enviroment.
However creating KosClientFactory was boiler plate.