Restored missing getQuery method in PersistenceManager