It is not possible to retrieve a property's value from the Configuration object if the reference to the original property object used in ConfigurationTemplate is lost.
eg:
fun main(args: Array) {
val config = ConfigurationTemplate().withProp(Property.string("MY_PROP"),"myprop").reify()
val propValue = config.get(Property.string("MY_PROP"))
println(propValue)
}
gives Exception in thread "main" io.github.konfigur8.Misconfiguration: Unknown configuration key 'MY_PROP'
Instead, it should provide the value from environment or the default "myprop"