iterating on the query classes attempting to improve on a deadlock happening from time to time in multithreading scenarios
commenting out the factoryMethod attribute