Don't know if this is applicable here (and elsewhere where the same iteration pattern is used) but Spring HATEOAS has support for assembling a (paged) resource out of a list (actually a page) of domain objects. See eg StreamsController.list().

This coincides with the need (don't know if it's hard to achieve or not) to use HATEOAS pagination instead of this ad-hoc way