```
MessagesWithHref messagesWithHref = json.apply(response);
Messages.Builder messages = new Messages.builder()
builder.messages(Iterables.transform(messagesWithHref, ...))
return builder.links(messagesWithHref.getLinks()).build();
```
?