protected fun getOrLoadProperties(key: T, name: String, keyCreator: (String) -> String): Map<String, String>
Gets the cached Properties content as Map for the given key or loads the properties file with the given name and creates a map out of it using the given keyCreator function to create the keys of the map, based on a key of a property.
key - The key which identifies the Properties
name - The name of the properties file, including the package in which it resides if necessary
but without file extension. It is always searched with an absolute path (/ is prepended)
-- the same behaviour as for a properties based ResourceBundle
keyCreator - The function used to create keys of the resulting Map (in case the properties file needs
to be loaded). It is called passing in a key of a property of the properties file.
Return
A Map containing the resulting keys (based on the Properties, see keyCreator) with its translations.