// End of build
;
// Create sub-resources based on items
for (CartItem cartItem : cart.getCartItems()) {
Representation publicCartItemRepresentation= new PublicCartItemRepresentation().get(cartItem);
cartRepresentation.withRepresentation("cartitems", publicCartItemRepresentation);
}
return cartRepresentation;
}