code: private static Xpp3Dom getPluginConfigurationDom(MavenProject project, String pluginId) {
      Plugin plugin = project.getBuild().getPluginsAsMap().get(pluginId);
      if (plugin != null) {
        return (Xpp3Dom) plugin.getConfiguration();
      }
  
      return null;
    }
docs: Taken from eclipse plugin. Search for the configuration Xpp3 dom of an other plugin.
  
  @param project  the current maven project to get the configuration from.
  @param pluginId the group id and artifact id of the plugin to search for
  @return the value of the plugin configuration