class BuildContentHandler {

    public Build update(final org.guvnor.common.services.project.model.Build from,
                        Build to) {
        if (from == null) {
            return null;
        } else {
            if (to == null) {
                to = new Build();
            }

            if (from.getPlugins() != null) {
                to.setPlugins(new MavenPluginUpdater(to.getPlugins()).update(from.getPlugins()));
            }

            return to;
        }
    }

}