ConfigurationUtility->getCurrentConfiguration only delivers default configuration
TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility has a nice handy function getCurrentConfiguration($extensionKey), which tries to load the default configuration and overlay it with the current configuration. But due to an error it will always output the default configuration.
Using GeneralUtility::array_merge_recursive_overrule $defaultConfig should be overlayed with $currentExtensionConfig. The problem is that the two arrays have different formats.
$defaultConfig contains the array with information parsed from the typoscript (style) comments, the default values are nested in these informations.
$currentExtensionConfig contains a pure key value store for the configuration.
Also see the attached screenshot to see how the two array don't fit together.
I don't really know how to solve this properly. I would love to have a Utility Function that just returns a key value array, but at the moment the function returns the more verbose array. We can't really change this anymore, since this is public API isn't it?
There are two spots in the core at the moment that use this method, that could be adjusted, but there might already be 3rd party implementations using it.