Revert "Revert "Changed type of QueryParameters collection from ArrayList<QueryParameter> to Collection<QueryParameter>""

This reverts commit f9e7790d6504d95dec9bd9840519b7403bd40fb0.