A while read key; do ...; done < "$__object/parameter/key" is probably a little bit more beautiful / easier to read (no strong feelings though)