class MavenPluginUpdater {

    public List<Plugin> update(final List<org.guvnor.common.services.project.model.Plugin> from) {

        List<Plugin> result = new ArrayList<>();

        for (org.guvnor.common.services.project.model.Plugin plugin : from) {
            if (plugin.getArtifactId() != null && plugin.getGroupId() != null) {
                result.add(update(plugin,
                                  findPlugin(plugin.getGroupId(),
                                             plugin.getArtifactId())));
            }
        }

        return result;
    }

    public  MavenPluginUpdater(List<Plugin> pluginsDeclaredInPOM);

}