private Xpp3Dom toXpp3Dom(PlexusConfiguration config) {
        Xpp3Dom result = new Xpp3Dom(config.getName());
        result.setValue(config.getValue(null));
        for (String name : config.getAttributeNames()) {
            result.setAttribute(name, config.getAttribute(name));
        }
        for (PlexusConfiguration child : config.getChildren()) {
            result.addChild(toXpp3Dom(child));
        }
        return result;
    }
A service for executing goals on configured plugins.
<p>
Inspired by and partly reused from
https://github.com/TimMoore/mojo-executor but adapted to newer Maven versions.

@author roland
@since 01/07/15
src/main/java/io/fabric8/maven/docker/service/MojoExecutionService.java