Kotlin : Resource injection