Use spring for init the QueriesGenerator object.