[Changed] query controller: writing start\end sequences on returning resources