class ChefCookbookConfiguration {

    public void addInstalledPackage(ChefPackage installedPackage) {
        String action = installedPackage.getAction();
        if (":nothing".equals(action) || ":install".equals(action) || "upgrade".equals(action)) {
            installedPackages.put(installedPackage.getName(), installedPackage);
        } else if (":remove".equals(action) || ":purge".equals(action)) {
            installedPackages.remove(installedPackage.getName());
        }
    }

    public  ChefCookbookConfiguration(ChefCookbookConfiguration componentType);
    public  ChefCookbookConfiguration();

}