ref #10284 adjust service API to allow retrieving terms of a term collection