[NUCJPA-272] Rework getParameters to get from generic query compilation