enricher/api/src/main/java/io/fabric8/maven/enricher/api/util/MavenConfigurationExtractor.java
public static Map<String, Object> extract(Xpp3Dom root) {
        if (root == null) {
            return new HashMap<>();
        }

        return getElement(root);
    }
public static Map<String, Object> extract(Xpp3Dom root) {
        if (root == null) {
            return new HashMap<>();
        }

        return getElement(root);
    }
Transforms the Dom object into a Map.
This Map can contain pairs key/value where value can be a simple type, another Map (Inner objects)
and a list of simple types.

Currently it is NOT supported List of complex objects.
@param root object.
@return Map of DOM structure.