Adding acquire and release session calls for Query Operations.