return Iterables.transform(node().get("items"), new Function<JsonNode, JresBulkItemResult>() {
@Override
public JresBulkItemResult apply(JsonNode resultEntry) {
assert resultEntry.size() == 1;
Map.Entry<String, JsonNode> result = resultEntry.getFields().next();
Item item = ObjectMappers.fromJson(result.getValue(), Item.class);
return new JresBulkItemResult(result.getKey(), item);
}
});
}