class CookbookParseResult {

    public List<CookbookParseResult> getListOfConfigsInOwnParseresult() {
        List<CookbookParseResult> parseResultsList = new ArrayList<>();
        List<ChefCookbookConfiguration> cookbookConfigs = this.getAllConfigsAsList();
        if (cookbookConfigs.size() > 0) {
            for (int i = 0; i < cookbookConfigs.size(); i++) {
                CookbookParseResult parseResult = new CookbookParseResult(this);
                parseResult.clearConfigurations();
                parseResult.putCookbookConfig(cookbookConfigs.get(i));
                parseResultsList.add(parseResult);
            }
        } else {
            CookbookParseResult parseResult = new CookbookParseResult(this);
            parseResultsList.add(parseResult);
        }
        return parseResultsList;
    }

    public  CookbookParseResult(String cookbookName);
    public  CookbookParseResult(CookbookParseResult cookbookParseResult);

}