> @@ -43,6 +43,13 @@
>  
>     @Override
>     public CookbookDefinition apply(HttpResponse response) {
> -      return parser.apply(response).values().iterator().next();
> +      Map<String, CookbookDefinition> result = parser.apply(response);

Ah, OK. In that case, perhaps add a `from(CookbookDefinition)` method to the 
Builder? Then we could shorten this and the other invocation to something like:
```
return CookbookDefinition.Builder.from(def).name(cookbookName).build();
```

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-chef/pull/24/files#r6428717

Reply via email to