REST: Make respond method work on collections