class ChefCookbookConfiguration {

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

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

}